Entity Framework 4.1 auto generate with DbContext when creating ADO.NET Entity Data Model
Posted
by
smudgedlens
on Stack Overflow
See other posts from Stack Overflow
or by smudgedlens
Published on 2012-09-08T14:31:25Z
Indexed on
2012/09/08
15:38 UTC
Read the original article
Hit count: 207
entity-framework-4.1
|dbcontext
I would like to work with DbContext instead of ObjectContext. I updated EF so now I have the DbContext, but I want to generate my strongly-typed context based on the DbContext and not the ObjectContext. When I add new ADO.NET Entity Data Model, it is still based on the ObjectContext. Is it not possible to have it base off of DbContext in Visual Studio 2010 with EF 4.1?
UPDATE:
Okay, I followed the directions in this link and was able to generate the DbContext template objects. However, now it is saying there is ambiguity between the template entities and the entities in my .edmx file. How do I resovle this? Do I blow away the ones in the .edmx file?
© Stack Overflow or respective owner