Example #1
0
        public override SqlParameter[] GetParameters()
        {
            M_ExamPoint model = this;

            SqlParameter[] sp = GetSP();
            sp[0].Value = model.ID;
            sp[1].Value = model.TestPoint;
            sp[2].Value = model.TID;
            sp[3].Value = model.OrderBy;
            sp[4].Value = model.AddUser;
            sp[5].Value = model.AddTime;
            return(sp);
        }
Example #2
0
        public M_ExamPoint GetModelFromReader(DbDataReader rdr)
        {
            M_ExamPoint model = new M_ExamPoint();

            model.ID        = Convert.ToInt32(rdr["ID"]);
            model.TestPoint = rdr["TestPoint"].ToString();
            model.TID       = Convert.ToInt32(rdr["TID"]);
            model.OrderBy   = Convert.ToInt32(rdr["OrderBy"]);
            model.AddUser   = Convert.ToInt32(rdr["AddUser"]);
            model.AddTime   = Convert.ToDateTime(rdr["AddTime"]);
            rdr.Close();
            rdr.Dispose();
            return(model);
        }