4
Shouts

Using WCF Data Services with Entity Framework 4.1 and Code First - ADO.NET team blog

published 790 days, 20 hours, 57 minutes ago posted by iftekharahmedamitiftekharahmedamit 791 days, 6 hours, 4 minutes ago
Tuesday, March 22, 2011 11:59:28 PM GMT Tuesday, March 22, 2011 2:53:08 PM GMT

In this post you’ll see how Code First and the DbContext class in Entity Framework 4.1 RC will work with WCF Data Services going forward. WCF Data Services in .NET 4.0 was released prior to the Entity Framework 4.1 RC and so does not natively know about the DbContext class. There are numerous posts already on how to get DbContext to work with WCF Data Services in .NET 4.0, including this one by Rowan Miller. These posts talk about how to write some extra code to initialize the DataService class. This is not how we envisioned these technologies working together. However, it is possible to see how these technologies were meant to work together by using EF 4.1 RC along with the Microsoft WCF Data Services 2011 CTP2. In this walk through we’ll build a simple WCF Data Service using Code First with the latest and greatest releases. This post does assume some knowledge of Code First, DbContext, and WCF Data Services...

category: Architecture | clicked: 41 | | source: blogs.msdn.com | show counter code
tags: DbContext, Code first, Data Services, Entity Framework 4.1, WCF Data Services, WCF

1 comment posted.

To post your comment please login or signup