public M_Plat_Group GetModelFromReader(DbDataReader rdr) { M_Plat_Group model = new M_Plat_Group(); model.ID = Convert.ToInt32(rdr["ID"]); model.Pid = Convert.ToInt32(rdr["Pid"]); model.GroupName = ConverToStr(rdr["GroupName"]); model.GroupDesc = ConverToStr(rdr["GroupDesc"]); model.ManageIDS = ConverToStr(rdr["ManageIDS"]); model.MemberIDS = ConverToStr(rdr["MemberIDS"]); model.GroupType = ConvertToInt(rdr["GroupType"]); model.Status = ConvertToInt(rdr["Status"]); model.CreateUser = ConvertToInt(rdr["CreateUser"]); model.CreateTime = ConvertToDate(rdr["CreateTime"]); model.CompID = ConvertToInt(rdr["CompID"]); model.FirstID = ConvertToInt(rdr["FirstID"]); model.Depth = ConvertToInt(rdr["Depth"]); model.OrderID = ConvertToInt(rdr["OrderID"]); rdr.Close(); return(model); }
public override SqlParameter[] GetParameters() { M_Plat_Group model = this; EmptyDeal(); SqlParameter[] sp = GetSP(); sp[0].Value = model.ID; sp[1].Value = model.Pid; sp[2].Value = model.GroupName; sp[3].Value = model.GroupDesc; sp[4].Value = model.ManageIDS; sp[5].Value = model.MemberIDS; sp[6].Value = model.GroupType; sp[7].Value = model.Status; sp[8].Value = model.CreateUser; sp[9].Value = model.CreateTime; sp[10].Value = model.CompID; sp[11].Value = model.FirstID; sp[12].Value = model.Depth; sp[13].Value = model.OrderID; return(sp); }