title: C# connection string to application data folder
body: <p>I'm having a problem with my local database file <code>.mdf</code>. After create my setup project, I read on internet that my <code>.mdf</code> files should be in the User's application data folder, that's why I'm having permissions error on my <code>.mdf</code> files. So, in the project setup, I right click and add a special folder "User´s Application Data Folder" and drag my <code>.mdf</code> files there.</p>
  
  <p>If this will create a folder on the Windows app data of the client, with my database files, what should be my connection string?</p>
  
  <p>Right now is this way:</p>
  
  <pre><code>connectionString="Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\DatabaseIris.mdf;Integrated Security=True"
  </code></pre>