/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromIceantransactionscriteria(ref DataRow row, Iceantransactionscriteria entity) { row.SetField("typecode", entity.typecode); row.SetField("prod", entity.prod); row.SetField("whse", entity.whse); row.SetField("prodcat", entity.prodcat); row.SetField("sortby", entity.sortby); row.SetField("startdt", entity.startdt); row.SetField("enddt", entity.enddt); row.SetField("statustype", entity.statustype); row.SetField("brokentiefl", entity.brokentiefl); row.SetField("iceansecurity", entity.iceansecurity); row.SetField("userfield", entity.userfield); }
public static Iceantransactionscriteria BuildIceantransactionscriteriaFromRow(DataRow row) { Iceantransactionscriteria entity = new Iceantransactionscriteria(); entity.typecode = row.IsNull("typecode") ? string.Empty : row.Field <string>("typecode"); entity.prod = row.IsNull("prod") ? string.Empty : row.Field <string>("prod"); entity.whse = row.IsNull("whse") ? string.Empty : row.Field <string>("whse"); entity.prodcat = row.IsNull("prodcat") ? string.Empty : row.Field <string>("prodcat"); entity.sortby = row.IsNull("sortby") ? string.Empty : row.Field <string>("sortby"); entity.startdt = row.Field <DateTime?>("startdt"); entity.enddt = row.Field <DateTime?>("enddt"); entity.statustype = row.IsNull("statustype") ? string.Empty : row.Field <string>("statustype"); entity.brokentiefl = row.Field <bool>("brokentiefl"); entity.iceansecurity = row.IsNull("iceansecurity") ? 0 : row.Field <int>("iceansecurity"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }