示例#1
0
 /// <summary>
 /// Create a new Instrument object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="instrumentName">Initial value of the InstrumentName property.</param>
 /// <param name="symbol">Initial value of the Symbol property.</param>
 public static Instrument CreateInstrument(global::System.Guid id, global::System.String instrumentName, global::System.String symbol)
 {
     Instrument instrument = new Instrument();
     instrument.Id = id;
     instrument.InstrumentName = instrumentName;
     instrument.Symbol = symbol;
     return instrument;
 }
示例#2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Instruments EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToInstruments(Instrument instrument)
 {
     base.AddObject("Instruments", instrument);
 }