Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeblanketupdatecriteria(ref DataRow row, Oeblanketupdatecriteria entity)
 {
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("shipto", entity.shipto);
     row.SetField("promisedt", entity.promisedt);
     row.SetField("origpromisedt", entity.origpromisedt);
     row.SetField("reqshipdt", entity.reqshipdt);
     row.SetField("billdt", entity.billdt);
     row.SetField("shipviaty", entity.shipviaty);
     row.SetField("customparam", entity.customparam);
 }
Example #2
0
        public static Oeblanketupdatecriteria BuildOeblanketupdatecriteriaFromRow(DataRow row)
        {
            Oeblanketupdatecriteria entity = new Oeblanketupdatecriteria();

            entity.orderno       = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordersuf      = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf");
            entity.shipto        = row.IsNull("shipto") ? string.Empty : row.Field <string>("shipto");
            entity.promisedt     = row.Field <DateTime?>("promisedt");
            entity.origpromisedt = row.Field <DateTime?>("origpromisedt");
            entity.reqshipdt     = row.Field <DateTime?>("reqshipdt");
            entity.billdt        = row.Field <DateTime?>("billdt");
            entity.shipviaty     = row.IsNull("shipviaty") ? string.Empty : row.Field <string>("shipviaty");
            entity.customparam   = row.IsNull("customparam") ? string.Empty : row.Field <string>("customparam");
            return(entity);
        }