Skip to content
This repository has been archived by the owner on Dec 29, 2020. It is now read-only.

Net.Http.OData.Metadata

Trevor Pilley edited this page Mar 3, 2020 · 7 revisions

The Metadata describes the entity sets and the Entity Data Model in the OData service, the following classes and their public members are contained within the namespace Net.Http.OData.Metadata.

ServiceDocumentProvider

Provides the service document for the Entity Data Model which is exposed at https://service/odata/.

Method Description
static IEnumerable<ServiceDocumentItem> Create(EntityDataModel entityDataModel, ODataRequestOptions requestOptions) Creates the ServiceDocumentItems that represent the Entity Data Model.

XmlMetadataProvider

Provides the Metadata XML document for the Entity Data Model which is exposed at https://service/odata/$metadata.

Method Description
static XDocument Create(EntityDataModel entityDataModel, ODataServiceOptions serviceOptions) Creates an XDocument containing the Metadata XML document for the Entity Data Model.