I use EF5(code first) & VS2012 in my project.
I try to create tables in LocalDb with migrations.
- Enable-Migrations
- Add-Migration m1
- Ubdate-Database
Every time I find my tables not in LocalDb but in sqlexpress, though i create ConnectionString like this:
<add name="StihlDbContext" connectionString="Server=(localdb)\v11.0;Initial Catalog=StihlDb;Integrated Security=True" providerName="System.Data.SqlClient" />
I don't understand why EF create database in .\SQLEXPRESS but not in LocalDb