-
Book Overview & Buying
-
Table Of Contents
OData Programming Cookbook for .NET Developers
By :
When talking about rule-based access control in service development, we will often think about the security authentication and authorization concepts. WCF Data Service has provided a built-in setting for controlling the access rules over the entity sets and operations exposed in the service. In this recipe, we will demonstrate how we can use this feature to perform basic access control against entity sets exposed by WCF Data Service.
We will use the Northwind OData service (built with WCF Data Service and ADO.NET Entity Framework) as an example and apply some access rules to the entity sets exposed from it.
The source code for this recipe can be found in the \ch03\ODataBasicRulesSln\ directory.
1. Create a new ASP.NET web application, which contains the Northwind OData service.
For demonstration, we will expose four entity sets in the service, which contain the Category, Order, Order_Detail, and Product entity types...
Change the font size
Change margin width
Change background colour