/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromKitcheckpartialbo(ref DataRow row, Kitcheckpartialbo entity) { row.SetField("orderno", entity.orderno); row.SetField("ordersuf", entity.ordersuf); row.SetField("lineno", entity.lineno); row.SetField("kitsordtype", entity.kitsordtype); row.SetField("userfield", entity.userfield); }
public static Kitcheckpartialbo BuildKitcheckpartialboFromRow(DataRow row) { Kitcheckpartialbo entity = new Kitcheckpartialbo(); entity.orderno = row.IsNull("orderno") ? 0 : row.Field <int>("orderno"); entity.ordersuf = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf"); entity.lineno = row.IsNull("lineno") ? 0 : row.Field <int>("lineno"); entity.kitsordtype = row.IsNull("kitsordtype") ? string.Empty : row.Field <string>("kitsordtype"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }