public override SqlParameter[] GetParameters() { M_EnrollList model = this; SqlParameter[] sp = GetSP(); sp[0].Value = model.id; sp[1].Value = model.UesrID; sp[2].Value = model.CreateTime; sp[3].Value = model.infos; return(sp); }
public M_EnrollList GetModelFromReader(DbDataReader rdr) { M_EnrollList model = new M_EnrollList(); model.id = Convert.ToInt32(rdr["id"]); model.UesrID = Convert.ToInt32(rdr["UesrID"]); model.CreateTime = Convert.ToDateTime(rdr["CreateTime"]); model.infos = rdr["infos"].ToString(); rdr.Close(); rdr.Dispose(); return(model); }