/// <summary> /// Create a new Room object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="isPersistable">Initial value of the IsPersistable property.</param> /// <param name="capacity">Initial value of the Capacity property.</param> /// <param name="isPrivate">Initial value of the IsPrivate property.</param> /// <param name="password">Initial value of the Password property.</param> public static Room CreateRoom(global::System.Int64 id, global::System.String name, global::System.Boolean isPersistable, global::System.Int32 capacity, global::System.Boolean isPrivate, global::System.String password) { Room room = new Room(); room.Id = id; room.Name = name; room.IsPersistable = isPersistable; room.Capacity = capacity; room.IsPrivate = isPrivate; room.Password = password; return room; }
/// <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); }