예제 #1
0
 /// <summary>
 /// Create a new Amenity object.
 /// </summary>
 /// <param name="amenityId">Initial value of the AmenityId 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 Amenity CreateAmenity(global::System.Int32 amenityId, global::System.String name, global::System.DateTime createDate, global::System.String createdBy, global::System.Boolean isDeleted)
 {
     Amenity amenity = new Amenity();
     amenity.AmenityId = amenityId;
     amenity.Name = name;
     amenity.CreateDate = createDate;
     amenity.CreatedBy = createdBy;
     amenity.IsDeleted = isDeleted;
     return amenity;
 }
예제 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Amenities EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAmenities(Amenity amenity)
 {
     base.AddObject("Amenities", amenity);
 }