/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromOefulfillmentsubmit(ref DataRow row, Oefulfillmentsubmit entity) { row.SetField("orderno", entity.orderno); row.SetField("ordersuf", entity.ordersuf); row.SetField("repricefl", entity.repricefl); row.SetField("nspricefl", entity.nspricefl); row.SetField("resetaddonfl", entity.resetaddonfl); row.SetField("recalccostfl", entity.recalccostfl); row.SetField("userfield", entity.userfield); }
public static Oefulfillmentsubmit BuildOefulfillmentsubmitFromRow(DataRow row) { Oefulfillmentsubmit entity = new Oefulfillmentsubmit(); entity.orderno = row.IsNull("orderno") ? 0 : row.Field <int>("orderno"); entity.ordersuf = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf"); entity.repricefl = row.Field <bool>("repricefl"); entity.nspricefl = row.Field <bool>("nspricefl"); entity.resetaddonfl = row.Field <bool>("resetaddonfl"); entity.recalccostfl = row.Field <bool>("recalccostfl"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }