public M_Sys_CSSManage GetModelFromReader(DbDataReader rdr) { M_Sys_CSSManage model = new M_Sys_CSSManage(); model.ID = ConvertToInt(rdr["ID"]); model.Name = ConverToStr(rdr["Name"]); model.CDate = ConvertToDate(rdr["CDate"]); model.AdminID = ConvertToInt(rdr["AdminID"]); model.Remind = ConverToStr(rdr["Remind"]); model.CSS = ConverToStr(rdr["CSS"]); model.CSSList = ConverToStr(rdr["CSSList"]); model.ZStatus = ConvertToInt(rdr["ZStatus"]); rdr.Close(); return(model); }
public override SqlParameter[] GetParameters() { M_Sys_CSSManage model = this; if (model.CDate <= DateTime.MinValue) { model.CDate = DateTime.Now; } SqlParameter[] sp = GetSP(); sp[0].Value = model.ID; sp[1].Value = model.Name; sp[2].Value = model.CDate; sp[3].Value = model.AdminID; sp[4].Value = model.Remind; sp[5].Value = model.CSS; sp[6].Value = model.CSSList; sp[7].Value = model.ZStatus; return(sp); }