The main entry point for developing an Open Data Protocol (OData) data service by using WCF Data Services.
Assembly: Microsoft.Data.Services (in Microsoft.Data.Services.dll)
[<AspNetCompatibilityRequirementsAttribute(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)>] [<ServiceBehaviorAttribute(InstanceContextMode = InstanceContextMode.PerCall)>] type DataService<'T> = class interface IRequestHandler end
Type that defines the data service.
Thetype exposes the following members.
|AttachHost||Attaches the data service host to the data service identified by the parameter host.|
|CreateDataSource||Creates a data source of the template class that will be used by the data service.|
|Equals||(Inherited from Object.)|
|Finalize||(Inherited from Object.)|
|GetHashCode||(Inherited from Object.)|
|GetType||(Inherited from Object.)|
|HandleException||Called when an exception is raised while processing a request.|
|MemberwiseClone||(Inherited from Object.)|
|OnStartProcessingRequest||Called before processing each request. For batch requests, it is called one time for the top batch request and one time for each operation in the batch.|
|ProcessRequest||Processes an HTTP request.|
|ProcessRequestForMessage||Processes an HTTP request.|
|ToString||(Inherited from Object.)|
The class does the basic integration of all components of the server system. A new data service that uses system defaults for authorization and caching is created by defining a class that derives from the class and by referencing a compatible data model.
The type of the must expose at least one property that returns an entity set that is an IQueryable(T) collection of entity types. This class must also implement the IUpdatable interface to enable updates to be made to entity resources.