MVC 4 Local Database
-
Hello ! I want to build a MVC 4 app database using Entity Framework Code First . I have the following problem : I've tried to create a local database with 2 tables in it (I declared 2 classes and then attached them in a DbContext class) , and then wrote the following connection string :
The database doesn't seem to be created after running the application , since it doesn't appear in the Server Explorer and in the App_Data Folder . I use Visual Studio 2012 . Can you please help me solve this problem ?
-
Hello ! I want to build a MVC 4 app database using Entity Framework Code First . I have the following problem : I've tried to create a local database with 2 tables in it (I declared 2 classes and then attached them in a DbContext class) , and then wrote the following connection string :
The database doesn't seem to be created after running the application , since it doesn't appear in the Server Explorer and in the App_Data Folder . I use Visual Studio 2012 . Can you please help me solve this problem ?
Hi, Check http://msdn.microsoft.com/en-us/data/jj193542.aspx[^] Video. This may give you some idea or may be lead to solution for your problem. Have you tried to use SQL server instead of local database server ?
-
Hi, Check http://msdn.microsoft.com/en-us/data/jj193542.aspx[^] Video. This may give you some idea or may be lead to solution for your problem. Have you tried to use SQL server instead of local database server ?
I managed to solve the problem by creating the model using an existing database . Thanks !