I used DbContext for all my database models until I read the Entity Framework Optimization Methods after completing the steps that I had to switch to ObjectContext instead. So there have been a lot of code changes, but I'm not sure I'm doing the right thing, especially after Googling respects that I noticed that DbContext newer and better than ObjectContext , and I also noticed that I lost a lot of things by switching on ObjectContext , like Migrations and Find, and more ...
So, Is it right to change my code to use an ObjectContext instead of a DbContext to increase the speed by pre-creating the views? or am i doing something wrong?
source share