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