AndyDB
AndyDB

Reputation: 431

Best / Correct way to store SQLite datasource connection

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

Answers (2)

malkassem
malkassem

Reputation: 1957

The recommended approach is to use app.config.

Please Microsoft Article: click here

Upvotes: 0

Daniel A. White
Daniel A. White

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

Related Questions