ef code first - What is the setting to require Entity Framework automatic database schema creation? -


If you are developing against SQL CE and using the unit framework code, make schema by default on the fly. has gone. But what is appropriate about SQL Express or SQL Server?

What is the setting - either in code or in the web? Configure - To Enable Automatic Schema Creation?

Magic is the only provider

SQL Server CE connection string:

  & lt; ConnectionStrings & gt; & Lt; Name = "reference" provider name = "System.Data.SqlServerCe.4.0" connectionString = "data source = File.sdf" /> & Lt; / ConnectionStrings & gt;   

SQL Server Connection String:

  & lt; Connection best & gt; & Lt; Name add = "context" provider name = "System.Data.SqlClient" connectionString = "data source = localhost; initial catalog = testdb; integrated security = spi" /> & Lt; / ConnectionStrings & gt;    

Comments