Error in Using Dynamic Data Entities WebSite in VS2012

Posted by amin behzadi on Stack Overflow See other posts from Stack Overflow or by amin behzadi
Published on 2012-10-04T09:35:05Z Indexed on 2012/10/04 9:37 UTC
Read the original article Hit count: 227

I decided to use Dynamic Data Entities website in vs2012. So, I created this website,then added App_Code directory and added a new edmx to it and named it myDB.edmx. After that I uncommented the code line in global.asax which registers the entity context :

DefaultModel.RegisterContext(typeof(myDBEntities), new ContextConfiguration() { ScaffoldAllTables = true });

But when I run the website this error occurs :

The context type 'myDBEntities' is not supported.

how can I fix it?

p.s: You now there are some differences between using L2S by Dynamic Data L2S website AND using entity framework by Dynamic Data Entities website.

© Stack Overflow or respective owner

Related posts about entity-framework

Related posts about dynamic-data