/// <summary> /// Create a new AmenityOption object. /// </summary> /// <param name="amenityId">Initial value of the AmenityId property.</param> /// <param name="option">Initial value of the Option 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> /// <param name="sortOrder">Initial value of the SortOrder property.</param> public static AmenityOption CreateAmenityOption(global::System.Int32 amenityId, global::System.String option, global::System.DateTime createDate, global::System.String createdBy, global::System.Boolean isDeleted, global::System.Int32 sortOrder) { AmenityOption amenityOption = new AmenityOption(); amenityOption.AmenityId = amenityId; amenityOption.Option = option; amenityOption.CreateDate = createDate; amenityOption.CreatedBy = createdBy; amenityOption.IsDeleted = isDeleted; amenityOption.SortOrder = sortOrder; return amenityOption; }
/// <summary> /// Deprecated Method for adding a new object to the AmenityOptions EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAmenityOptions(AmenityOption amenityOption) { base.AddObject("AmenityOptions", amenityOption); }