예제 #1
0
 /// <summary>
 /// Create a new Hotel object.
 /// </summary>
 /// <param name="pk_idHotel">Initial value of the pk_idHotel property.</param>
 /// <param name="name">Initial value of the name property.</param>
 /// <param name="address">Initial value of the address property.</param>
 /// <param name="description">Initial value of the description property.</param>
 /// <param name="fk_idTown">Initial value of the fk_idTown property.</param>
 /// <param name="state">Initial value of the state property.</param>
 public static Hotel CreateHotel(global::System.Int64 pk_idHotel, global::System.String name, global::System.String address, global::System.String description, global::System.Int64 fk_idTown, global::System.Boolean state)
 {
     Hotel hotel = new Hotel();
     hotel.pk_idHotel = pk_idHotel;
     hotel.name = name;
     hotel.address = address;
     hotel.description = description;
     hotel.fk_idTown = fk_idTown;
     hotel.state = state;
     return hotel;
 }
예제 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Hotels EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToHotels(Hotel hotel)
 {
     base.AddObject("Hotels", hotel);
 }