Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeheaderchangedatescriteria(ref DataRow row, Oeheaderchangedatescriteria entity)
 {
     row.SetField("dtupdtype", entity.dtupdtype);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("orgreqshipdt", entity.orgreqshipdt);
     row.SetField("newreqshipdt", entity.newreqshipdt);
     row.SetField("orgpromisedt", entity.orgpromisedt);
     row.SetField("newpromisedt", entity.newpromisedt);
     row.SetField("orgorigpromisedt", entity.orgorigpromisedt);
     row.SetField("neworigpromisedt", entity.neworigpromisedt);
 }
Beispiel #2
0
        public static Oeheaderchangedatescriteria BuildOeheaderchangedatescriteriaFromRow(DataRow row)
        {
            Oeheaderchangedatescriteria entity = new Oeheaderchangedatescriteria();

            entity.dtupdtype        = row.IsNull("dtupdtype") ? string.Empty : row.Field <string>("dtupdtype");
            entity.orderno          = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordersuf         = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf");
            entity.orgreqshipdt     = row.Field <DateTime?>("orgreqshipdt");
            entity.newreqshipdt     = row.Field <DateTime?>("newreqshipdt");
            entity.orgpromisedt     = row.Field <DateTime?>("orgpromisedt");
            entity.newpromisedt     = row.Field <DateTime?>("newpromisedt");
            entity.orgorigpromisedt = row.Field <DateTime?>("orgorigpromisedt");
            entity.neworigpromisedt = row.Field <DateTime?>("neworigpromisedt");
            return(entity);
        }