Ejemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Spots EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSpots(Spot spot)
 {
     base.AddObject("Spots", spot);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new Spot object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="stopName">Initial value of the StopName property.</param>
 /// <param name="position">Initial value of the Position property.</param>
 public static Spot CreateSpot(global::System.Int32 id, global::System.String stopName, Position position)
 {
     Spot spot = new Spot();
     spot.Id = id;
     spot.StopName = stopName;
     spot.Position = StructuralObject.VerifyComplexObjectIsNotNull(position, "Position");
     return spot;
 }