/// <summary> /// Deprecated Method for adding a new object to the RoomAssignments EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToRoomAssignments(RoomAssignment roomAssignment) { base.AddObject("RoomAssignments", roomAssignment); }
/// <summary> /// Create a new RoomAssignment object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="startTime">Initial value of the startTime property.</param> /// <param name="endTime">Initial value of the endTime property.</param> /// <param name="room">Initial value of the room property.</param> /// <param name="doctor">Initial value of the doctor property.</param> public static RoomAssignment CreateRoomAssignment(global::System.Int32 id, global::System.DateTime startTime, global::System.DateTime endTime, global::System.Int32 room, global::System.Int32 doctor) { RoomAssignment roomAssignment = new RoomAssignment(); roomAssignment.id = id; roomAssignment.startTime = startTime; roomAssignment.endTime = endTime; roomAssignment.room = room; roomAssignment.doctor = doctor; return roomAssignment; }