Example #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Rooms EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToRooms(DBRoom dBRoom)
 {
     base.AddObject("Rooms", dBRoom);
 }
Example #2
0
 /// <summary>
 /// Create a new DBRoom object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="ownerId">Initial value of the OwnerId property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="categoryId">Initial value of the CategoryId property.</param>
 /// <param name="lastEntry">Initial value of the LastEntry property.</param>
 public static DBRoom CreateDBRoom(global::System.Int32 id, global::System.Int32 ownerId, global::System.String name, global::System.String description, global::System.String categoryId, global::System.DateTime lastEntry)
 {
     DBRoom dBRoom = new DBRoom();
     dBRoom.Id = id;
     dBRoom.OwnerId = ownerId;
     dBRoom.Name = name;
     dBRoom.Description = description;
     dBRoom.CategoryId = categoryId;
     dBRoom.LastEntry = lastEntry;
     return dBRoom;
 }