/// <summary> /// Deprecated Method for adding a new object to the CustomAmenities EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCustomAmenities(CustomAmenity customAmenity) { base.AddObject("CustomAmenities", customAmenity); }
/// <summary> /// Create a new CustomAmenity object. /// </summary> /// <param name="buildingId">Initial value of the BuildingId property.</param> /// <param name="name">Initial value of the Name property.</param> public static CustomAmenity CreateCustomAmenity(global::System.Int64 buildingId, global::System.String name) { CustomAmenity customAmenity = new CustomAmenity(); customAmenity.BuildingId = buildingId; customAmenity.Name = name; return customAmenity; }