/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromIcsprinitialize(ref DataRow row, Icsprinitialize entity) { row.SetField("icsprdropdownlist", entity.icsprdropdownlist); row.SetField("icsprselectiontype", entity.icsprselectiontype); row.SetField("useproductfl", entity.useproductfl); row.SetField("useprodlinefl", entity.useprodlinefl); row.SetField("usevendnofl", entity.usevendnofl); row.SetField("useprodcatfl", entity.useprodcatfl); row.SetField("useprodprctyfl", entity.useprodprctyfl); row.SetField("usealtprodgrpfl", entity.usealtprodgrpfl); row.SetField("usebrandcdfl", entity.usebrandcdfl); row.SetField("usewhsefl", entity.usewhsefl); row.SetField("icsprtdropdownlist", entity.icsprtdropdownlist); row.SetField("icsprtselectiontype", entity.icsprtselectiontype); row.SetField("usecustnofl", entity.usecustnofl); row.SetField("useshiptofl", entity.useshiptofl); row.SetField("usecityfl", entity.usecityfl); row.SetField("usestatefl", entity.usestatefl); row.SetField("usezipcodefl", entity.usezipcodefl); row.SetField("usecountryfl", entity.usecountryfl); row.SetField("usecusttypefl", entity.usecusttypefl); row.SetField("usecustprctypefl", entity.usecustprctypefl); row.SetField("usesalesterrfl", entity.usesalesterrfl); row.SetField("usecertcodefl", entity.usecertcodefl); row.SetField("userfield", entity.userfield); }
public static Icsprinitialize BuildIcsprinitializeFromRow(DataRow row) { Icsprinitialize entity = new Icsprinitialize(); entity.icsprdropdownlist = row.IsNull("icsprdropdownlist") ? string.Empty : row.Field <string>("icsprdropdownlist"); entity.icsprselectiontype = row.IsNull("icsprselectiontype") ? string.Empty : row.Field <string>("icsprselectiontype"); entity.useproductfl = row.Field <bool>("useproductfl"); entity.useprodlinefl = row.Field <bool>("useprodlinefl"); entity.usevendnofl = row.Field <bool>("usevendnofl"); entity.useprodcatfl = row.Field <bool>("useprodcatfl"); entity.useprodprctyfl = row.Field <bool>("useprodprctyfl"); entity.usealtprodgrpfl = row.Field <bool>("usealtprodgrpfl"); entity.usebrandcdfl = row.Field <bool>("usebrandcdfl"); entity.usewhsefl = row.Field <bool>("usewhsefl"); entity.icsprtdropdownlist = row.IsNull("icsprtdropdownlist") ? string.Empty : row.Field <string>("icsprtdropdownlist"); entity.icsprtselectiontype = row.IsNull("icsprtselectiontype") ? string.Empty : row.Field <string>("icsprtselectiontype"); entity.usecustnofl = row.Field <bool>("usecustnofl"); entity.useshiptofl = row.Field <bool>("useshiptofl"); entity.usecityfl = row.Field <bool>("usecityfl"); entity.usestatefl = row.Field <bool>("usestatefl"); entity.usezipcodefl = row.Field <bool>("usezipcodefl"); entity.usecountryfl = row.Field <bool>("usecountryfl"); entity.usecusttypefl = row.Field <bool>("usecusttypefl"); entity.usecustprctypefl = row.Field <bool>("usecustprctypefl"); entity.usesalesterrfl = row.Field <bool>("usesalesterrfl"); entity.usecertcodefl = row.Field <bool>("usecertcodefl"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }