Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOelinedeletecriteria(ref DataRow row, Oelinedeletecriteria entity)
 {
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("lineno", entity.lineno);
     row.SetField("maintmode", entity.maintmode);
 }
Esempio n. 2
0
        public static Oelinedeletecriteria BuildOelinedeletecriteriaFromRow(DataRow row)
        {
            Oelinedeletecriteria entity = new Oelinedeletecriteria();

            entity.orderno   = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordersuf  = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf");
            entity.lineno    = row.IsNull("lineno") ? 0 : row.Field <int>("lineno");
            entity.maintmode = row.Field <bool>("maintmode");
            return(entity);
        }