I decided to use the Dynamic Data Entities website in VS2012.
So, I created this website and then added the App_Code directory and added a new edmx to it and named it myDB.edmx . After that, I uncommented the line of code in Global.asax that registers the entity context:
DefaultModel.RegisterContext(typeof(myDBEntities), new ContextConfiguration() { ScaffoldAllTables = true });
But when I start the site, this error occurs:
The context type 'myDBEntities' is not supported.
how can i fix this?
ps: Now you have some differences between using L2S ββon the Dynamic Data L2S Web Site and using the Entity Framework on the Dynamic Data Entities Web Site .
source share