/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromOelinecfglaunch(ref DataRow row, Oelinecfglaunch entity) { row.SetField("orderno", entity.orderno); row.SetField("ordersuf", entity.ordersuf); row.SetField("prod", entity.prod); row.SetField("lineno", entity.lineno); row.SetField("specnstype", entity.specnstype); row.SetField("wtboderrfl", entity.wtboderrfl); row.SetField("wtbilledorderfl", entity.wtbilledorderfl); row.SetField("cfgkitcompfl", entity.cfgkitcompfl); row.SetField("redirecturl", entity.redirecturl); row.SetField("customparam", entity.customparam); row.SetField("userfield", entity.userfield); }
public static Oelinecfglaunch BuildOelinecfglaunchFromRow(DataRow row) { Oelinecfglaunch entity = new Oelinecfglaunch(); entity.orderno = row.IsNull("orderno") ? 0 : row.Field <int>("orderno"); entity.ordersuf = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf"); entity.prod = row.IsNull("prod") ? string.Empty : row.Field <string>("prod"); entity.lineno = row.IsNull("lineno") ? 0 : row.Field <int>("lineno"); entity.specnstype = row.IsNull("specnstype") ? string.Empty : row.Field <string>("specnstype"); entity.wtboderrfl = row.Field <bool>("wtboderrfl"); entity.wtbilledorderfl = row.Field <bool>("wtbilledorderfl"); entity.cfgkitcompfl = row.Field <bool>("cfgkitcompfl"); entity.redirecturl = row.IsNull("redirecturl") ? string.Empty : row.Field <string>("redirecturl"); entity.customparam = row.IsNull("customparam") ? string.Empty : row.Field <string>("customparam"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }