Creating WCF Plain Service
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.
In this task you will learn how to create a WCF Plain Service by using the Service Wizard.
Creating WCF Plain Service
To create a new WCF Plain Service:
- Build your solution.
-
Right-click the SofiaCarRentalDomainModel.rlinq and select Add Telerik Data Access Service....
-
This will bring up the Service Wizard. The first page of the wizard is the Select Source and Output dialog. From the Select context drop-down select SofiaCarRentalDbContext. From the Host in Project drop-down select SilverlightOpenAccessIntegration. Check the Use Existing Project option and select SilverlightOpenAccessIntegration.
-
Click Next to continue. The Select Service Type dialog appears. Select WCF Plain Service.
-
Click Next to continue. In the Service Configuration dialog, set the Service Name to SofiaCarRentalWCFEndPointService. Select which entities from the grid below to be generated as part of the service. By default all entities are selected. Also you have the option to specify what CUD operations can be performed on the generated entities. Check all entities.
-
Click Next to continue. In the Preview dialog, review all changes that will be done in your project.
-
Click Finish to generate the service.
Testing the Plain Service
To test the plain service in a Web Browser, right-click on the .svc file and select View in Browser.