I am successfully creating database (SQL Ce) using Entity Framework Code First approach (C#-WPF). I am trying to simulate creation of database per project. Meaning that user could open file dialog window, select / create desired folder for project and then access existent or create new database. Which leads me to a question how can i create / read database connection file per specific project.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
<add name="NerdDinners"
connectionString="Data Source=\Projects\NerdDinners.sdf"
providerName="System.Data.SqlServerCe.4.0"/>
</connectionStrings>
</configuration>