/// <summary> /// Deprecated Method for adding a new object to the Restaurants EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToRestaurants(Restaurants restaurants) { base.AddObject("Restaurants", restaurants); }
/// <summary> /// Create a new Restaurants object. /// </summary> /// <param name="restaurantID">Initial value of the RestaurantID property.</param> /// <param name="restaurantName">Initial value of the RestaurantName property.</param> public static Restaurants CreateRestaurants(global::System.Int32 restaurantID, global::System.String restaurantName) { Restaurants restaurants = new Restaurants(); restaurants.RestaurantID = restaurantID; restaurants.RestaurantName = restaurantName; return restaurants; }