/// <summary> /// Deprecated Method for adding a new object to the MarketDatas EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToMarketDatas(MarketData marketData) { base.AddObject("MarketDatas", marketData); }
/// <summary> /// Create a new MarketData object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="marketDate">Initial value of the MarketDate property.</param> /// <param name="open">Initial value of the Open property.</param> /// <param name="close">Initial value of the Close property.</param> /// <param name="high">Initial value of the High property.</param> /// <param name="low">Initial value of the Low property.</param> /// <param name="volume">Initial value of the Volume property.</param> public static MarketData CreateMarketData(global::System.Guid id, global::System.DateTime marketDate, global::System.Decimal open, global::System.Decimal close, global::System.Decimal high, global::System.Decimal low, global::System.Int64 volume) { MarketData marketData = new MarketData(); marketData.Id = id; marketData.MarketDate = marketDate; marketData.Open = open; marketData.Close = close; marketData.High = high; marketData.Low = low; marketData.Volume = volume; return marketData; }