/// <summary> /// Deprecated Method for adding a new object to the Listings EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToListings(Listing listing) { base.AddObject("Listings", listing); }
/// <summary> /// Create a new Listing object. /// </summary> /// <param name="listingId">Initial value of the ListingId property.</param> /// <param name="buildingId">Initial value of the BuildingId property.</param> /// <param name="isActive">Initial value of the IsActive property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="dateListedUtc">Initial value of the DateListedUtc 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 Listing CreateListing(global::System.Int32 listingId, global::System.Int32 buildingId, global::System.Boolean isActive, global::System.String description, global::System.DateTime dateListedUtc, global::System.DateTime createDate, global::System.String createdBy, global::System.Boolean isDeleted) { Listing listing = new Listing(); listing.ListingId = listingId; listing.BuildingId = buildingId; listing.IsActive = isActive; listing.Description = description; listing.DateListedUtc = dateListedUtc; listing.CreateDate = createDate; listing.CreatedBy = createdBy; listing.IsDeleted = isDeleted; return listing; }