Exemplo n.º 1
0
        public override SqlParameter[] GetParameters()
        {
            M_Exam_Class model = this;

            SqlParameter[] sp = GetSP();
            sp[0].Value = model.C_id;
            sp[1].Value = model.C_ClassName;
            sp[2].Value = model.C_Classid;
            sp[3].Value = model.C_OrderBy;
            sp[4].Value = model.C_ClassType;
            return(sp);
        }
Exemplo n.º 2
0
        public M_Exam_Class GetModelFromReader(DbDataReader rdr)
        {
            M_Exam_Class model = new M_Exam_Class();

            model.C_id        = Convert.ToInt32(rdr["C_id"]);
            model.C_ClassName = ConverToStr(rdr["C_ClassName"]);
            model.C_Classid   = ConvertToInt(rdr["C_Classid"]);
            model.C_OrderBy   = ConvertToInt(rdr["C_OrderBy"]);
            model.C_ClassType = ConvertToInt(rdr["C_ClassType"]);
            rdr.Close();
            return(model);
        }