/// <summary> /// Deprecated Method for adding a new object to the Stocks EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToStocks(Stock stock) { base.AddObject("Stocks", stock); }
/// <summary> /// Create a new Stock object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="stock1">Initial value of the Stock1 property.</param> /// <param name="supplierID">Initial value of the SupplierID property.</param> public static Stock CreateStock(global::System.Int32 id, global::System.String stock1, global::System.Int32 supplierID) { Stock stock = new Stock(); stock.ID = id; stock.Stock1 = stock1; stock.SupplierID = supplierID; return stock; }