/// <summary>
 /// Create a new CustomAmenity object.
 /// </summary>
 /// <param name="amenityId">Initial value of the AmenityId property.</param>
 /// <param name="propertyInfoId">Initial value of the PropertyInfoId 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 CustomAmenity CreateCustomAmenity(global::System.Int32 amenityId, global::System.Int32 propertyInfoId, global::System.String name, global::System.DateTime createDate, global::System.String createdBy, global::System.Boolean isDeleted)
 {
     CustomAmenity customAmenity = new CustomAmenity();
     customAmenity.AmenityId = amenityId;
     customAmenity.PropertyInfoId = propertyInfoId;
     customAmenity.Name = name;
     customAmenity.CreateDate = createDate;
     customAmenity.CreatedBy = createdBy;
     customAmenity.IsDeleted = isDeleted;
     return customAmenity;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the CustomAmenities EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCustomAmenities(CustomAmenity customAmenity)
 {
     base.AddObject("CustomAmenities", customAmenity);
 }