I'm working on an MVC 3 project, and i created a DAL project too. the EDMX is in the DAL project, and of course there is a connection string in the App.config(in the DAL project) so everytime i want to update the edmx it refers to this connection string of course.
The case is as following, the database is in the APP_Data folder in the MVC 3 project, and so i can update the edmx file, i have to refer to the database using the physical path in the connection string in the App.config in the DAL project. But i want to set the connection string by referring to the APP_DATA folder so it can be more dynamic and so i dont need to change it when i move the project to another location.
so how can i tell the DAL project that the database is in the app_data folder in the MVC project
Thanks