Reputation: 3515
simple stuff, I want to use App_Data as my db storage folder.
How can I reference App_Data in my connString.
<add name="ConnectionString" connectionString="Data Source=mydb.sqlite; ..." />
Upvotes: 11
Views: 7889
Reputation: 17194
<add name="ConnectionString"
connectionString="Data Source=|DataDirectory|\MyDb.sqlite;......" />
The |DataDirectory|
token would expand to an App_Data
folder under the root of a web application.
Upvotes: 26