问题
And if it will, what is the best practice in terms of connection strings? Just a relative path? |DataDirectory| ?
回答1:
SQ Lite should work just fine in a ClickOnce scenario. It's a zero configuration components. Components which require configuration usually have issues with click once.
http://www.sqlite.org/
回答2:
I don't know about SQLite, but yes: I believe you'd want to use |DataDirectory|
with ClickOnce, since that points to the area in the user's profile where the app's data/settings can be stored.
来源:https://stackoverflow.com/questions/532251/will-sqlite-work-in-a-clickonce-deployment