/// <summary>
 /// Deprecated Method for adding a new object to the Stocks EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; 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="ticker">Initial value of the Ticker property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 public static Stock CreateStock(global::System.Int32 id, global::System.String ticker, global::System.String name)
 {
     Stock stock = new Stock();
     stock.Id = id;
     stock.Ticker = ticker;
     stock.Name = name;
     return stock;
 }