/// <summary> /// Create a new Building object. /// </summary> /// <param name="buildingId">Initial value of the BuildingId property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="listingType">Initial value of the ListingType property.</param> /// <param name="contactInfoId">Initial value of the ContactInfoId property.</param> /// <param name="address1">Initial value of the Address1 property.</param> /// <param name="city">Initial value of the City property.</param> /// <param name="state">Initial value of the State property.</param> /// <param name="zip">Initial value of the Zip property.</param> /// <param name="propertyType">Initial value of the PropertyType property.</param> /// <param name="squareFeet">Initial value of the SquareFeet property.</param> /// <param name="acres">Initial value of the Acres property.</param> /// <param name="yearBuilt">Initial value of the YearBuilt property.</param> /// <param name="bedrooms">Initial value of the Bedrooms property.</param> /// <param name="bathrooms">Initial value of the Bathrooms property.</param> /// <param name="isActive">Initial value of the IsActive property.</param> /// <param name="creditCheckRequired">Initial value of the CreditCheckRequired property.</param> /// <param name="backgroundCheckRequired">Initial value of the BackgroundCheckRequired property.</param> /// <param name="smokingAllowed">Initial value of the SmokingAllowed property.</param> /// <param name="removedByAdmin">Initial value of the RemovedByAdmin property.</param> /// <param name="isDeleted">Initial value of the IsDeleted property.</param> /// <param name="createDate">Initial value of the CreateDate property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> public static Building CreateBuilding(global::System.Int64 buildingId, global::System.Guid userId, global::System.String listingType, global::System.Int64 contactInfoId, global::System.String address1, global::System.String city, global::System.String state, global::System.String zip, global::System.String propertyType, global::System.Int32 squareFeet, global::System.Decimal acres, global::System.Int32 yearBuilt, global::System.Int32 bedrooms, global::System.Decimal bathrooms, global::System.Boolean isActive, global::System.Boolean creditCheckRequired, global::System.Boolean backgroundCheckRequired, global::System.Boolean smokingAllowed, global::System.Boolean removedByAdmin, global::System.Boolean isDeleted, global::System.DateTime createDate, global::System.String createdBy) { Building building = new Building(); building.BuildingId = buildingId; building.UserId = userId; building.ListingType = listingType; building.ContactInfoId = contactInfoId; building.Address1 = address1; building.City = city; building.State = state; building.Zip = zip; building.PropertyType = propertyType; building.SquareFeet = squareFeet; building.Acres = acres; building.YearBuilt = yearBuilt; building.Bedrooms = bedrooms; building.Bathrooms = bathrooms; building.IsActive = isActive; building.CreditCheckRequired = creditCheckRequired; building.BackgroundCheckRequired = backgroundCheckRequired; building.SmokingAllowed = smokingAllowed; building.RemovedByAdmin = removedByAdmin; building.IsDeleted = isDeleted; building.CreateDate = createDate; building.CreatedBy = createdBy; return building; }
/// <summary> /// Deprecated Method for adding a new object to the Buildings EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToBuildings(Building building) { base.AddObject("Buildings", building); }