I decided to use Dynamic Data Entities Web Site in VS2012.
So, I created this Web Site, 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 Web Site
and using Entity Framework by Dynamic Data Entities Web Site
.