コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the RoomTypes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToRoomTypes(RoomType roomType)
 {
     base.AddObject("RoomTypes", roomType);
 }
コード例 #2
0
 /// <summary>
 /// Create a new RoomType object.
 /// </summary>
 /// <param name="roomTypeID">Initial value of the RoomTypeID property.</param>
 /// <param name="value">Initial value of the Value property.</param>
 public static RoomType CreateRoomType(global::System.Int32 roomTypeID, global::System.String value)
 {
     RoomType roomType = new RoomType();
     roomType.RoomTypeID = roomTypeID;
     roomType.Value = value;
     return roomType;
 }