/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromOeheaderedicriteria(ref DataRow row, Oeheaderedicriteria entity) { row.SetField("orderno", entity.orderno); row.SetField("ordersuf", entity.ordersuf); row.SetField("showallfl", entity.showallfl); row.SetField("userfield", entity.userfield); }
public static Oeheaderedicriteria BuildOeheaderedicriteriaFromRow(DataRow row) { Oeheaderedicriteria entity = new Oeheaderedicriteria(); entity.orderno = row.IsNull("orderno") ? 0 : row.Field <int>("orderno"); entity.ordersuf = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf"); entity.showallfl = row.Field <bool>("showallfl"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }