/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromIcsegkeyfieldsload(ref DataRow row, Icsegkeyfieldsload entity) { row.SetField("accttype", entity.accttype); row.SetField("prodcatenablefl", entity.prodcatenablefl); row.SetField("whseenablefl", entity.whseenablefl); row.SetField("custtypeenablefl", entity.custtypeenablefl); row.SetField("salesrepenablefl", entity.salesrepenablefl); row.SetField("cogsadjenablefl", entity.cogsadjenablefl); row.SetField("prodcathiddenfl", entity.prodcathiddenfl); row.SetField("whsehiddenfl", entity.whsehiddenfl); row.SetField("custtypehiddenfl", entity.custtypehiddenfl); row.SetField("salesrephiddenfl", entity.salesrephiddenfl); row.SetField("cogsadjhiddenfl", entity.cogsadjhiddenfl); row.SetField("userfield", entity.userfield); }
public static Icsegkeyfieldsload BuildIcsegkeyfieldsloadFromRow(DataRow row) { Icsegkeyfieldsload entity = new Icsegkeyfieldsload(); entity.accttype = row.Field <bool>("accttype"); entity.prodcatenablefl = row.Field <bool>("prodcatenablefl"); entity.whseenablefl = row.Field <bool>("whseenablefl"); entity.custtypeenablefl = row.Field <bool>("custtypeenablefl"); entity.salesrepenablefl = row.Field <bool>("salesrepenablefl"); entity.cogsadjenablefl = row.Field <bool>("cogsadjenablefl"); entity.prodcathiddenfl = row.Field <bool>("prodcathiddenfl"); entity.whsehiddenfl = row.Field <bool>("whsehiddenfl"); entity.custtypehiddenfl = row.Field <bool>("custtypehiddenfl"); entity.salesrephiddenfl = row.Field <bool>("salesrephiddenfl"); entity.cogsadjhiddenfl = row.Field <bool>("cogsadjhiddenfl"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }