/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromIcentryserialssaveresponses(ref DataRow row, Icentryserialssaveresponses 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("extrasi", entity.extrasi); row.SetField("userfield", entity.userfield); }
public static Icentryserialssaveresponses BuildIcentryserialssaveresponsesFromRow(DataRow row) { Icentryserialssaveresponses entity = new Icentryserialssaveresponses(); 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.extrasi = row.IsNull("extrasi") ? string.Empty : row.Field <string>("extrasi"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }