public static Oemultilinecreatecriteria BuildOemultilinecreatecriteriaFromRow(DataRow row) { Oemultilinecreatecriteria entity = new Oemultilinecreatecriteria(); entity.orderno = row.IsNull("orderno") ? 0 : row.Field <int>("orderno"); entity.ordersuf = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf"); entity.maintmode = row.Field <bool>("maintmode"); return(entity); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromOemultilinecreatecriteria(ref DataRow row, Oemultilinecreatecriteria entity) { row.SetField("orderno", entity.orderno); row.SetField("ordersuf", entity.ordersuf); row.SetField("maintmode", entity.maintmode); }