We are moving some projects from VS2010 to VS2012, but still use .NET 4.0 and not .NET 4.5
When I add a new EDMX, VS2012 uses EF 5.0, but I would like to continue to use version 4.x, this is the first point.
The second point of version 5.0 is inherited from DbContext, not ObjectContext, as version 4.x. In version 5.0, I see no way to pass the connection string as a parameter.
How can I use version 4.x in VS2012 with the same EDMX designer behavior?
Thank,
As mentioned in the comments, you really get EF 4.4, not EF 5.0. However, embarrassingly, EF 4.4 is contained in the NuGet EntityFramework 5.0 package.
EDMX , " " "" " ", .tt. ObjectContext, , , EntityFramework .
.tt
ObjectContext
, NuGet.