/// <summary>
        /// 对象实体绑定数据
        /// </summary>
        public CommOrderItemModel ReaderBind(IDataReader dataReader)
        {
            CommOrderItemModel model = new CommOrderItemModel();
            object             ojb;

            model.OrderId = dataReader["OrderId"].ToString();
            ojb           = dataReader["ProductId"];
            if (ojb != null && ojb != DBNull.Value)
            {
                model.ProductId = (int)ojb;
            }
            ojb = dataReader["TypeCode"];
            if (ojb != null && ojb != DBNull.Value)
            {
                model.TypeCode = (int)ojb;
            }
            ojb = dataReader["Quantity"];
            if (ojb != null && ojb != DBNull.Value)
            {
                model.Quantity = (int)ojb;
            }
            ojb = dataReader["ProductSum"];
            if (ojb != null && ojb != DBNull.Value)
            {
                model.ProductSum = (decimal)ojb;
            }
            model.TypeInfo = dataReader["TypeInfo"].ToString();
            ojb            = dataReader["Score"];
            if (ojb != null && ojb != DBNull.Value)
            {
                model.Score = (int)ojb;
            }
            ojb = dataReader["FactPrice"];
            if (ojb != null && ojb != DBNull.Value)
            {
                model.FactPrice = (decimal)ojb;
            }
            ojb = dataReader["MerchantPrice"];
            if (ojb != null && ojb != DBNull.Value)
            {
                model.MerchantPrice = (decimal)ojb;
            }
            ojb = dataReader["TradePrice"];
            if (ojb != null && ojb != DBNull.Value)
            {
                model.TradePrice = (decimal)ojb;
            }
            ojb = dataReader["ReducePrice"];
            if (ojb != null && ojb != DBNull.Value)
            {
                model.ReducePrice = (decimal)ojb;
            }
            model.ProductName = dataReader["productname"].ToString();
            return(model);
        }
 /// <summary>
 /// 对象实体绑定数据
 /// </summary>
 public CommOrderItemModel ReaderBind(IDataReader dataReader)
 {
     CommOrderItemModel model = new CommOrderItemModel();
     object ojb;
     model.OrderId = dataReader["OrderId"].ToString();
     ojb = dataReader["ProductId"];
     if (ojb != null && ojb != DBNull.Value)
     {
         model.ProductId = (int)ojb;
     }
     ojb = dataReader["TypeCode"];
     if (ojb != null && ojb != DBNull.Value)
     {
         model.TypeCode = (int)ojb;
     }
     ojb = dataReader["Quantity"];
     if (ojb != null && ojb != DBNull.Value)
     {
         model.Quantity = (int)ojb;
     }
     ojb = dataReader["ProductSum"];
     if (ojb != null && ojb != DBNull.Value)
     {
         model.ProductSum = (decimal)ojb;
     }
     model.TypeInfo = dataReader["TypeInfo"].ToString();
     ojb = dataReader["Score"];
     if (ojb != null && ojb != DBNull.Value)
     {
         model.Score = (int)ojb;
     }
     ojb = dataReader["FactPrice"];
     if (ojb != null && ojb != DBNull.Value)
     {
         model.FactPrice = (decimal)ojb;
     }
     ojb = dataReader["MerchantPrice"];
     if (ojb != null && ojb != DBNull.Value)
     {
         model.MerchantPrice = (decimal)ojb;
     }
     ojb = dataReader["TradePrice"];
     if (ojb != null && ojb != DBNull.Value)
     {
         model.TradePrice = (decimal)ojb;
     }
     ojb = dataReader["ReducePrice"];
     if (ojb != null && ojb != DBNull.Value)
     {
         model.ReducePrice = (decimal)ojb;
     }
     model.ProductName = dataReader["productname"].ToString();
     return model;
 }