Service Generation Outcome (Version1)
This article is relevant to entity models that utilize the deprecated Visual Studio integration of Telerik Data Access. The current documentation of the Data Access framework is available here.
The Service Wizard allows you to generate WCF Data Services based on Telerik Data Access. This topic discusses the changes that the wizard will make to your project when you generate WCF Data Service version 1.
For more information about the WCF Data Service versioning, please read here.
References
The wizard adds references to:
- System.Data.Entity.dll
- System.Data.Services.dll
- System.Data.Services.Client.dll
- System.ServiceModel.dll
- System.ServiceModel.Web.dll
- Telerik.OpenAccess.dll
- Telerik.OpenAccess.35.Extensions.dll
- <Your Telerik Data Access Model Project>
Generated Files
When WCF Data Service version1 is generated, the wizard will automatically create the actual service files (.svc and .cs) and will add them to the output project.
- DataServiceKeys.cs - defines which properties are key for each entity type exposed by the service.
- DataManager.cs - this is a wrapper around OpenAccessContext that exposes data manipulation endpoints to the DataService.
- EntitiesModelService.svc - this is the hosting svc file for the service.
-
EntitiesModelService.svc.cs - contains the implementation of the service contract. The implementation uses DataService<T> as base type and sets access rights for entity endpoints.
To see the EntitiesModelService.svc.vb file in VB projects, use the Show All Files command from the Solution Explorer toolbar.