예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeblanketflushdatessingle(ref DataRow row, Oeblanketflushdatessingle entity)
 {
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("dtupdtype", entity.dtupdtype);
     row.SetField("reqshipdt", entity.reqshipdt);
     row.SetField("reqshipdt-o", entity.reqshipdtO);
     row.SetField("promisedt", entity.promisedt);
     row.SetField("promisedt-o", entity.promisedtO);
     row.SetField("origpromisedt", entity.origpromisedt);
     row.SetField("origpromisedt-o", entity.origpromisedtO);
 }
예제 #2
0
        public static Oeblanketflushdatessingle BuildOeblanketflushdatessingleFromRow(DataRow row)
        {
            Oeblanketflushdatessingle entity = new Oeblanketflushdatessingle();

            entity.orderno        = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordersuf       = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf");
            entity.dtupdtype      = row.IsNull("dtupdtype") ? string.Empty : row.Field <string>("dtupdtype");
            entity.reqshipdt      = row.Field <DateTime?>("reqshipdt");
            entity.reqshipdtO     = row.Field <DateTime?>("reqshipdt-o");
            entity.promisedt      = row.Field <DateTime?>("promisedt");
            entity.promisedtO     = row.Field <DateTime?>("promisedt-o");
            entity.origpromisedt  = row.Field <DateTime?>("origpromisedt");
            entity.origpromisedtO = row.Field <DateTime?>("origpromisedt-o");
            return(entity);
        }