/// <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(Restaurant restaurant) { base.AddObject("Restaurants", restaurant); }
/// <summary> /// Create a new Restaurant object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="location">Initial value of the Location property.</param> /// <param name="capacity">Initial value of the Capacity property.</param> public static Restaurant CreateRestaurant(global::System.Int32 id, global::System.String name, global::System.String location, global::System.Int32 capacity) { Restaurant restaurant = new Restaurant(); restaurant.Id = id; restaurant.Name = name; restaurant.Location = location; restaurant.Capacity = capacity; return restaurant; }