Is there an ObjectContext generator for Entity Framework 5.0?

entity-framework, generator, objectcontext

Solution

Right click the white space in the designer and select Properties, then change the Code Generation Strategy to "Default". You'll have to delete the code-first TT files, too.

Problem

I am looking or an ObjectContext generator for Entity Framework 5.0, not a DbContext generator. WCF Data Services requires an ObjectContext and won't work with a DbContext. If I want to use EF5 with a DataService I must provide an ObjectContext. The ObjectContext generators in Visual Studio 2010, and online are for "ADO" and for "EF 4.x". The generators for "EF 5.x" all product DbContext objects.

Original source