/// <summary> /// Create a new MarketData object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="created">Initial value of the Created property.</param> /// <param name="marketOpen">Initial value of the MarketOpen property.</param> /// <param name="marketHigh">Initial value of the MarketHigh property.</param> /// <param name="marketLow">Initial value of the MarketLow property.</param> /// <param name="marketClose">Initial value of the MarketClose property.</param> /// <param name="marketVolume">Initial value of the MarketVolume property.</param> /// <param name="instrumentId">Initial value of the InstrumentId property.</param> public static MarketData CreateMarketData(global::System.Guid id, global::System.DateTime created, global::System.Decimal marketOpen, global::System.Decimal marketHigh, global::System.Decimal marketLow, global::System.Decimal marketClose, global::System.Int64 marketVolume, global::System.Guid instrumentId) { MarketData marketData = new MarketData(); marketData.Id = id; marketData.Created = created; marketData.MarketOpen = marketOpen; marketData.MarketHigh = marketHigh; marketData.MarketLow = marketLow; marketData.MarketClose = marketClose; marketData.MarketVolume = marketVolume; marketData.InstrumentId = instrumentId; return marketData; }
/// <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); }