I've specified the following entry in my app.config
<add name="DefaultStoreConnection" providerName="System.Data.SqlServerCe.4.0" connectionString="Data Source=DefaultStore.sdf" />
Whenever I start my program and access the database, the database gets created at the following location
MyAppDir/DefaultStore.sdf
However, when I work with the Package Manager Console in order to create migrations, it creates the database there:
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\DefaultStore.sdf
The file name is right, so I guess Entity Framework just takes a relative path from the calling application, in case of the Package Manager Console: Visual Studio. Can I specificy my application directory inside app.config?
Data source=|DataDirectory|DefaulstStore.sdf;?