Entity Framework 5 code first - where is the database created

dbcontext, ef-code-first, entity-framework-5

Solution

You can get the connection string by using `ctx.Database.Connection.ConnectionString` which will tell you what database you are using.

Problem

I am following along this tutorial! everything works great, the blog names saved and retrieved from the database (assuming) since they are displayed in the console. Yet there I don't find any database created for it in local db nor the sql express on my machine. How to find where is the database created in the code first approach.

Original source