Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeblanketupdbyreleasesingle(ref DataRow row, Oeblanketupdbyreleasesingle entity)
 {
     row.SetField("orderno", entity.orderno);
     row.SetField("ordernotesfl", entity.ordernotesfl);
     row.SetField("lineno", entity.lineno);
     row.SetField("shipprod", entity.shipprod);
     row.SetField("prodnotesfl", entity.prodnotesfl);
     row.SetField("qtyord", entity.qtyord);
     row.SetField("qtyremain", entity.qtyremain);
     row.SetField("descrip", entity.descrip);
     row.SetField("totalqtyrel", entity.totalqtyrel);
     row.SetField("brsuffixlist", entity.brsuffixlist);
 }
Exemple #2
0
        public static Oeblanketupdbyreleasesingle BuildOeblanketupdbyreleasesingleFromRow(DataRow row)
        {
            Oeblanketupdbyreleasesingle entity = new Oeblanketupdbyreleasesingle();

            entity.orderno      = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordernotesfl = row.IsNull("ordernotesfl") ? string.Empty : row.Field <string>("ordernotesfl");
            entity.lineno       = row.IsNull("lineno") ? 0 : row.Field <int>("lineno");
            entity.shipprod     = row.IsNull("shipprod") ? string.Empty : row.Field <string>("shipprod");
            entity.prodnotesfl  = row.IsNull("prodnotesfl") ? string.Empty : row.Field <string>("prodnotesfl");
            entity.qtyord       = row.IsNull("qtyord") ? decimal.Zero : row.Field <decimal>("qtyord");
            entity.qtyremain    = row.IsNull("qtyremain") ? decimal.Zero : row.Field <decimal>("qtyremain");
            entity.descrip      = row.IsNull("descrip") ? string.Empty : row.Field <string>("descrip");
            entity.totalqtyrel  = row.IsNull("totalqtyrel") ? decimal.Zero : row.Field <decimal>("totalqtyrel");
            entity.brsuffixlist = row.IsNull("brsuffixlist") ? string.Empty : row.Field <string>("brsuffixlist");
            return(entity);
        }