/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromIcswloadsensitivitysingle(ref DataRow row, Icswloadsensitivitysingle entity) { row.SetField("fiCompanyRank", entity.fiCompanyRank); row.SetField("fiWhseRank", entity.fiWhseRank); row.SetField("tbRankFreezeFl", entity.tbRankFreezeFl); row.SetField("tbUsMthsFrzFl", entity.tbUsMthsFrzFl); row.SetField("fiThreshRefer", entity.fiThreshRefer); row.SetField("fiMinThreshold", entity.fiMinThreshold); row.SetField("fiMinThreshExpDt", entity.fiMinThreshExpDt); row.SetField("tbAsqFl", entity.tbAsqFl); row.SetField("tbAsqDiffFl", entity.tbAsqDiffFl); row.SetField("fiASQDiff", entity.fiASQDiff); row.SetField("tbHi5Fl", entity.tbHi5Fl); row.SetField("tbHi5DiffFl", entity.tbHi5DiffFl); row.SetField("fiHi5Diff", entity.fiHi5Diff); row.SetField("btnAdjusterInq", entity.btnAdjusterInq); row.SetField("btnTrendInfo", entity.btnTrendInfo); row.SetField("fiABCgmroiclass", entity.fiABCgmroiclass); row.SetField("fiABCsalesclass", entity.fiABCsalesclass); row.SetField("fiABCqtyclass", entity.fiABCqtyclass); row.SetField("fiABCcustclass", entity.fiABCcustclass); row.SetField("fiABCoverdt", entity.fiABCoverdt); row.SetField("fiABCfinalclass", entity.fiABCfinalclass); row.SetField("fiABCclassdt", entity.fiABCclassdt); row.SetField("userfield", entity.userfield); }
public static Icswloadsensitivitysingle BuildIcswloadsensitivitysingleFromRow(DataRow row) { Icswloadsensitivitysingle entity = new Icswloadsensitivitysingle(); entity.fiCompanyRank = row.Field <bool>("fiCompanyRank"); entity.fiWhseRank = row.Field <bool>("fiWhseRank"); entity.tbRankFreezeFl = row.Field <bool>("tbRankFreezeFl"); entity.tbUsMthsFrzFl = row.Field <bool>("tbUsMthsFrzFl"); entity.fiThreshRefer = row.Field <bool>("fiThreshRefer"); entity.fiMinThreshold = row.Field <bool>("fiMinThreshold"); entity.fiMinThreshExpDt = row.Field <bool>("fiMinThreshExpDt"); entity.tbAsqFl = row.Field <bool>("tbAsqFl"); entity.tbAsqDiffFl = row.Field <bool>("tbAsqDiffFl"); entity.fiASQDiff = row.Field <bool>("fiASQDiff"); entity.tbHi5Fl = row.Field <bool>("tbHi5Fl"); entity.tbHi5DiffFl = row.Field <bool>("tbHi5DiffFl"); entity.fiHi5Diff = row.Field <bool>("fiHi5Diff"); entity.btnAdjusterInq = row.Field <bool>("btnAdjusterInq"); entity.btnTrendInfo = row.Field <bool>("btnTrendInfo"); entity.fiABCgmroiclass = row.Field <bool>("fiABCgmroiclass"); entity.fiABCsalesclass = row.Field <bool>("fiABCsalesclass"); entity.fiABCqtyclass = row.Field <bool>("fiABCqtyclass"); entity.fiABCcustclass = row.Field <bool>("fiABCcustclass"); entity.fiABCoverdt = row.Field <bool>("fiABCoverdt"); entity.fiABCfinalclass = row.Field <bool>("fiABCfinalclass"); entity.fiABCclassdt = row.Field <bool>("fiABCclassdt"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }