I’ve got new project on the go and I’m looking at using the Entity Framework (v4) over a WCF service.
I was wondering what peoples views are on the best way of delivering the data from EF over WCF? Should I be using the EF generated classes or wrap them up into something else?
The consuming application will be web for the moment, but possibly others in the future (Silverlight, Windows, mobile etc).
For Silverlight i would recommend the WCF RIA Services. For web you could use ADO.NET Data Services.
Or you could get a little lower level and write your own bare bones WCF service and surface simple POCOs as transfer objects. This method is the most code-intensive and not for the faint of heart.