/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromIcentrylotssaveresponses(ref DataRow row, Icentrylotssaveresponses entity) { row.SetField("prod", entity.prod); row.SetField("whse", entity.whse); row.SetField("increaseqtyship", entity.increaseqtyship); row.SetField("decreaseqtyship", entity.decreaseqtyship); row.SetField("increaseqtyrcv", entity.increaseqtyrcv); row.SetField("increaseqtyrtn", entity.increaseqtyrtn); row.SetField("decreaseqtyrcv", entity.decreaseqtyrcv); row.SetField("decreaseqtyrtn", entity.decreaseqtyrtn); row.SetField("userfield", entity.userfield); }
public static Icentrylotssaveresponses BuildIcentrylotssaveresponsesFromRow(DataRow row) { Icentrylotssaveresponses entity = new Icentrylotssaveresponses(); entity.prod = row.IsNull("prod") ? string.Empty : row.Field <string>("prod"); entity.whse = row.IsNull("whse") ? string.Empty : row.Field <string>("whse"); entity.increaseqtyship = row.Field <bool>("increaseqtyship"); entity.decreaseqtyship = row.Field <bool>("decreaseqtyship"); entity.increaseqtyrcv = row.Field <bool>("increaseqtyrcv"); entity.increaseqtyrtn = row.Field <bool>("increaseqtyrtn"); entity.decreaseqtyrcv = row.Field <bool>("decreaseqtyrcv"); entity.decreaseqtyrtn = row.Field <bool>("decreaseqtyrtn"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }