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