コード例 #1
0
 /// <summary>
 /// Create a new Tables object.
 /// </summary>
 /// <param name="tableID">Initial value of the TableID property.</param>
 /// <param name="restaurantID">Initial value of the RestaurantID property.</param>
 /// <param name="numSeats">Initial value of the NumSeats property.</param>
 public static Tables CreateTables(global::System.Int32 tableID, global::System.Int32 restaurantID, global::System.Int32 numSeats)
 {
     Tables tables = new Tables();
     tables.TableID = tableID;
     tables.RestaurantID = restaurantID;
     tables.NumSeats = numSeats;
     return tables;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Tables EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTables(Tables tables)
 {
     base.AddObject("Tables", tables);
 }