Пример #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Tracks EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTracks(Track track)
 {
     base.AddObject("Tracks", track);
 }
Пример #2
0
 /// <summary>
 /// Create a new Track object.
 /// </summary>
 /// <param name="trackId">Initial value of the TrackId property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="milliseconds">Initial value of the Milliseconds property.</param>
 /// <param name="unitPrice">Initial value of the UnitPrice property.</param>
 public static Track CreateTrack(global::System.Int32 trackId, global::System.String name, global::System.Int32 milliseconds, global::System.Decimal unitPrice)
 {
     Track track = new Track();
     track.TrackId = trackId;
     track.Name = name;
     track.Milliseconds = milliseconds;
     track.UnitPrice = unitPrice;
     return track;
 }