Exemple #1
0
        public M_Papers_System GetModelFromReader(DbDataReader rdr)
        {
            M_Papers_System model = new M_Papers_System();

            model.Id     = Convert.ToInt32(rdr["id"]);
            model.p_name = rdr["p_name"].ToString();
            model.p_type = Convert.ToInt32(rdr["p_type"]);
            rdr.Close();
            return(model);
        }
Exemple #2
0
        public override SqlParameter[] GetParameters()
        {
            M_Papers_System model = this;

            SqlParameter[] sp = GetSP();
            sp[0].Value = model.Id;
            sp[1].Value = model.p_name;
            sp[2].Value = model.p_type;
            return(sp);
        }