Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPoblanketupdbyreleasesingle(ref DataRow row, Poblanketupdbyreleasesingle entity)
 {
     row.SetField("pono", entity.pono);
     row.SetField("ponotesfl", entity.ponotesfl);
     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);
 }
Beispiel #2
0
        public static Poblanketupdbyreleasesingle BuildPoblanketupdbyreleasesingleFromRow(DataRow row)
        {
            Poblanketupdbyreleasesingle entity = new Poblanketupdbyreleasesingle();

            entity.pono         = row.IsNull("pono") ? 0 : row.Field <int>("pono");
            entity.ponotesfl    = row.IsNull("ponotesfl") ? string.Empty : row.Field <string>("ponotesfl");
            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);
        }