Reputation: 431
I am building a very small SQLite application and want to know the best way/place to store the database connection string. I'm quite new to C#/WPF (hence the question).
Thank you.
Upvotes: 0
Views: 73
Reputation: 1957
The recommended approach is to use app.config.
Please Microsoft Article: click here
Upvotes: 0
Reputation: 190996
Use an app.config file. These will generate a settings class for you to use.
If you add a Settings
object from the new item dialog, this will all work great.
Upvotes: 1