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