Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeordersuspendloadcriteria(ref DataRow row, Oeordersuspendloadcriteria entity)
 {
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("oeeppsecure", entity.oeeppsecure);
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Oeordersuspendloadcriteria BuildOeordersuspendloadcriteriaFromRow(DataRow row)
        {
            Oeordersuspendloadcriteria entity = new Oeordersuspendloadcriteria();

            entity.orderno     = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordersuf    = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf");
            entity.oeeppsecure = row.IsNull("oeeppsecure") ? 0 : row.Field <int>("oeeppsecure");
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }