未将对象实例化

问题:在写订单查询时执行OrderInfromation的listGoods属性报错

解决方法:初始化listGoods

 public OrderInfromation()
        {
            listGoods = new List<GoodsInfromation>();
         }
        public List<GoodsInfromation> listGoods { get; set; }
       

猜你喜欢

转载自blog.csdn.net/eighteen_years_old/article/details/80852178