Browse by Tags
All Tags »
ADO.NET »
WCF (
RSS)
Using EF DbContext with WCF Data Services One of the questions that you may ask yourself with the new EF feature CTP5 is how to embed the new DbContext object inside an OData service or more particularly inside WCF Data Service . This post will supply the solution. DbContext as WCF Data Service Data Source Entity Framework has a good integration with WCF Data Services . All you need to do when you create a WCF Data Service with EF is to put the generated ObjectContext as a data source of the service...
Exposing a Stored Procedure in WCF Data Service Today I answered a question in the data platform development forums. The question was simple – how to expose a stored procedure which is mapped to an Entity Framework model through a WCF Data Service . This post will show you exactly how to do this. The Stored Procedure First I’ve created a the following stored procedure: CREATE PROCEDURE dbo.GetCoursesOrderByTitle AS BEGIN SET NOCOUNT ON SELECT CourseID, Title, Days, [ Time ], Location, Credits, DepartmentID...
Making Cross-Domain Ajax Requests for a Data Service One problem that exists when using ADO.NET data services is cross-domain requests. For security reasons, XMLHTTP requests don’t allow cross-domain HTTP requests. So what can we do if we want to make an Ajax call for a data service that isn’t located in our domain? this post will try to give a solution to this problem. Making a Cross-Domain Ajax Request for a Data Service As stated early in the post’s start, for security reasons, XMLHTTP requests...
Building a Host for ADO.NET Data Service After you built your data service you will probably want to deploy it. In the following post I’m going to explain how you can build a simple host for an ADO.NET data service without the use of svc file. Data Service Hosting The ADO.NET data services are not autonomous server entities. They live in the context of their service host such as WCF or ASP.NET . The data service host is handling the direct interactions with the network and supports caching, scalability...