I am trying stuff out on MVC4 Beta. Project is in VS11, EF 5.0-Beta, using Code First approach. Created simple Model poco and DbContext derived class with single IDbSet<> property for model class. Connection string with LocalDb.
I noticed when context's Entity Set property is type of IDbSet<> then I get message from VS when I try to create new controller with “Controller with read/write actions and views, using Entity Framework” Scaffolding template: "There was an error generating 'MyProject.MyNamespace.MyContext'. Try rebuilding your project." Even Clean Solution and building again doesn’t help.
If I changed Entity Set property to type DbSet<> then controller scaffolding succeeds. Is it a bug or is it expectable?
Br, Lauri