Exemplo n.º 1
0
 /// <summary>
 /// Create a new GoodProduct object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="sessionID">Initial value of the SessionID property.</param>
 public static GoodProduct CreateGoodProduct(global::System.Guid id, global::System.Guid sessionID)
 {
     GoodProduct goodProduct = new GoodProduct();
     goodProduct.ID = id;
     goodProduct.SessionID = sessionID;
     return goodProduct;
 }
Exemplo n.º 2
0
        public void AddGoodProduct(int id, string dirtyBarcode, string cleanBarcode, string name, 
								   string typeName, int i, double quantity, double d, string format, 
								   string s, DateTime now, DateTime dateTime)
        {
            var newGoodProduct = new GoodProduct
            {
                SessionID = _session.ID,
                ProductID = id.ToString(),
                ProductDirtyBarcode = dirtyBarcode,
                ProductCleanBarcode = cleanBarcode,
                ProductName = name,
                ProductBarcodeType = typeName,
                ProductQuantityCounted = i.ToString(),
                ProductQuantityFromDatabase = quantity.ToString(),
                ProductQuantityFromBeginning = d.ToString(),
                ProductAddedClient = format,
                ProductModifiedClient = s,
                ProductDateAdded = now.ToString(),
                ProductDateModified = dateTime.ToString(),
            };
            _repo.GoodProducts.AddObject(newGoodProduct);
            _repo.SaveChanges();
        }
Exemplo n.º 3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the GoodProducts EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToGoodProducts(GoodProduct goodProduct)
 {
     base.AddObject("GoodProducts", goodProduct);
 }