Search code examples
wcfentity-frameworkdatabase-firstef-database-first

EF database first & WCF: What about DataContracts?


I'm planning on using EF in a WCF Service. The database that will be used already exists.

I was wondering if I need to map the retreived entities to a datacontract, or can I use them directly?

And on a more general base: are there any pitfalls I should beware of?


Solution

  • You might consider using Entity Framework Provider (WCF Data Services)