Esempio n. 1
0
        public M_Order_LuckCode GetModelFromReader(DbDataReader rdr)
        {
            M_Order_LuckCode model = new M_Order_LuckCode();

            model.ID          = Convert.ToInt32(rdr["ID"]);
            model.Code        = ConvertToInt(rdr["Code"]);
            model.UserID      = Convert.ToInt32(rdr["UserID"]);
            model.OrderID     = ConvertToInt(rdr["OrderID"]);
            model.OrderNO     = ConverToStr(rdr["OrderNO"]);
            model.CreateTime  = ConverToStr(rdr["CreateTime"]);
            model.ProID       = ConvertToInt(rdr["ProID"]);
            model.CreateTime2 = ConverToStr(rdr["CreateTime2"]);
            rdr.Close();
            return(model);
        }
Esempio n. 2
0
        public override SqlParameter[] GetParameters()
        {
            M_Order_LuckCode model = this;

            SqlParameter[] sp = GetSP();
            sp[0].Value = model.ID;
            sp[1].Value = model.Code;
            sp[2].Value = model.UserID;
            sp[3].Value = model.OrderID;
            sp[4].Value = model.OrderNO;
            sp[5].Value = model.CreateTime;
            sp[6].Value = model.ProID;
            sp[7].Value = model.CreateTime2;
            return(sp);
        }