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

            model.StateCode = Convert.ToInt32(rdr["stateCode"]);
            model.StateName = ConverToStr(rdr["stateName"]);
            model.StateType = ConverToStr(rdr["stateType"]);
            rdr.Close();
            rdr.Dispose();
            return(model);
        }
Exemple #2
0
        public override SqlParameter[] GetParameters()
        {
            M_AuditingState model = this;

            SqlParameter[] sp = GetSP();
            sp[0].Value = model.StateCode;
            sp[1].Value = model.StateName;
            sp[2].Value = model.StateType;

            return(sp);
        }