rochestermn
asked on
Entity Framework 5.0 and Code First not creating sql database.
Im really confused because in the past Ive created these and they just work right out of the gate. But all of a sudden with visual studio 2012 and EF 5.0 I create a simple asp.net mvc 4 Intranet application and I ran into a couple major issues. One with IIS 7.5 express on my local machine not authorizing me. But I just switched my project to run on localhost and that took care of that. But the issue Im asking about here is why its not creating my sql server db based on my model into sql server express. I have added nothing to my web.config in terms of connection strings. Also I have not enabled migrations in the Package Manager Console. When I try to do that it says it cant find a context. But I thought I had that taken care of in my model folder.
With earlier versions of EF codefirst Ive not had this issue. If someone could help me figure this out I would appreciate it. I havent been able to find anything online to help.
With earlier versions of EF codefirst Ive not had this issue. If someone could help me figure this out I would appreciate it. I havent been able to find anything online to help.
ASKER
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Open in new window