I'm working on some 3 tier architecture project.

I created 1 solution, with 3 different projects: DAL,BLL and Presentation.

The DAL Project App\_Data folder contain my mdf file.
In one of my DAL classes, i'm using the following command to connect to my database:

```
Conn = new SqlConnection("Data Source =.\\SQLExpress; Integrated Security =true; AttachDbFilename = |DataDirectory|\\" + dbName + "; User Instance =true;");

```

When i'm trying to run it, i see that the |DataDirectory| returns the path of my Presentation Project App\_Data folder(which doesn't exist).

How can i change it to my DAL Project App\_Data Folder?

Thanks!