Ejemplo n.º 1
0
        public M_Guest_BarAuth GetModelFromReader(DbDataReader rdr)
        {
            M_Guest_BarAuth model = new M_Guest_BarAuth();

            model.ID    = Convert.ToInt32(rdr["id"]);
            model.Uid   = Convert.ToInt32(rdr["Uid"]);
            model.UName = rdr["UName"].ToString();
            model.BarID = Convert.ToInt32(rdr["BarID"]);
            model.Look  = ConvertToInt(rdr["Look"]);
            model.Send  = ConvertToInt(rdr["Send"]);
            model.Reply = ConvertToInt(rdr["Reply"]);
            rdr.Close();
            return(model);
        }
Ejemplo n.º 2
0
        public override SqlParameter[] GetParameters()
        {
            M_Guest_BarAuth model = this;

            EmptyDeal();
            SqlParameter[] sp = GetSP();
            sp[0].Value = model.ID;
            sp[1].Value = model.Uid;
            sp[2].Value = model.UName;
            sp[3].Value = model.BarID;
            sp[4].Value = model.Look;
            sp[5].Value = model.Send;
            sp[6].Value = model.Reply;
            return(sp);
        }