/// <summary> /// Deprecated Method for adding a new object to the RoomTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToRoomTypes(RoomType roomType) { base.AddObject("RoomTypes", roomType); }
/// <summary> /// Create a new RoomType object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="capacity">Initial value of the Capacity property.</param> /// <param name="dailyCharge">Initial value of the DailyCharge property.</param> /// <param name="name">Initial value of the Name property.</param> public static RoomType CreateRoomType(global::System.Int32 id, global::System.String capacity, global::System.Int32 dailyCharge, global::System.String name) { RoomType roomType = new RoomType(); roomType.Id = id; roomType.Capacity = capacity; roomType.DailyCharge = dailyCharge; roomType.Name = name; return roomType; }
public Room(RoomType rt, decimal pr) { roomType = rt; roomPrice = pr; }