コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Routes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToRoutes(Route route)
 {
     base.AddObject("Routes", route);
 }
コード例 #2
0
 /// <summary>
 /// Create a new Route object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="commuterId">Initial value of the CommuterId property.</param>
 public static Route CreateRoute(global::System.Int32 id, global::System.String description, global::System.Int32 commuterId)
 {
     Route route = new Route();
     route.Id = id;
     route.Description = description;
     route.CommuterId = commuterId;
     return route;
 }