/// <summary> /// Deprecated Method for adding a new object to the Rooms EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToRooms(Room room) { base.AddObject("Rooms", room); }
/// <summary> /// Create a new Room object. /// </summary> /// <param name="roomNumber">Initial value of the RoomNumber property.</param> /// <param name="numberOfSeats">Initial value of the NumberOfSeats property.</param> /// <param name="theaterID">Initial value of the TheaterID property.</param> /// <param name="roomID">Initial value of the RoomID property.</param> public static Room CreateRoom(global::System.Int32 roomNumber, global::System.Int32 numberOfSeats, global::System.Guid theaterID, global::System.Int32 roomID) { Room room = new Room(); room.RoomNumber = roomNumber; room.NumberOfSeats = numberOfSeats; room.TheaterID = theaterID; room.RoomID = roomID; return room; }