public void AddBadProduct(int id, string dirtyBarcode, string cleanBarcode, string typeName, int i, string empty, string format, string s, DateTime now, string dateConn) { var newBadProduct = new BadProduct { SessionID = _session.ID, ProductId = id.ToString(), ProductDirtyBarcode = dirtyBarcode, ProductCleanBarcode = cleanBarcode, ProductBarcodeType = typeName, ProductQuantityCounted = i.ToString(), ProductConnectedWithProduct = empty, ProductClientAdded = format, ProductClientConnected = s, ProductDateAdded = now.ToString(), ProductDateConnected = dateConn }; _repo.BadProducts.AddObject(newBadProduct); _repo.SaveChanges(); }
/// <summary> /// Create a new BadProduct object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="sessionID">Initial value of the SessionID property.</param> public static BadProduct CreateBadProduct(global::System.Guid id, global::System.Guid sessionID) { BadProduct badProduct = new BadProduct(); badProduct.ID = id; badProduct.SessionID = sessionID; return badProduct; }
/// <summary> /// Deprecated Method for adding a new object to the BadProducts EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToBadProducts(BadProduct badProduct) { base.AddObject("BadProducts", badProduct); }