コード例 #1
0
 /// <summary>
 /// Create a new Room object.
 /// </summary>
 /// <param name="roomId">Initial value of the RoomId property.</param>
 /// <param name="propertyInfoId">Initial value of the PropertyInfoId property.</param>
 /// <param name="floorName">Initial value of the FloorName property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="createDate">Initial value of the CreateDate property.</param>
 /// <param name="createdBy">Initial value of the CreatedBy property.</param>
 /// <param name="isDeleted">Initial value of the IsDeleted property.</param>
 public static Room CreateRoom(global::System.Int32 roomId, global::System.Int32 propertyInfoId, global::System.String floorName, global::System.String name, global::System.DateTime createDate, global::System.String createdBy, global::System.Boolean isDeleted)
 {
     Room room = new Room();
     room.RoomId = roomId;
     room.PropertyInfoId = propertyInfoId;
     room.FloorName = floorName;
     room.Name = name;
     room.CreateDate = createDate;
     room.CreatedBy = createdBy;
     room.IsDeleted = isDeleted;
     return room;
 }
コード例 #2
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(Room room)
 {
     base.AddObject("Rooms", room);
 }