当前位置:网站首页>C# 解决使用SQLite 的相对路径问题
C# 解决使用SQLite 的相对路径问题
2022-06-27 08:15:00 【doshy_】
问题描述:我把 data.db 放在项目下,项目打包为 exe 后不可能还使用 绝对路径吧 !!!
解决方案如图: (test_project是我的项目名)
Debug模式:|DataDirectory| 是指 test_project\bin\Debug
Release模式:|DataDirectory| 是指 test_project\bin\Release
App_Data 文件夹包含应用程序的本地数据存储

边栏推荐
猜你喜欢
随机推荐
MySQL environment variable configuration tutorial
0号进程,1号进程,2号进程
Etcd tutorial - Chapter 5 etcd etcdctl usage
Design of a solar charge pump power supply circuit
SIG associé: toutes les routes mènent à ue5
Reference | upgrade win11 mobile hotspot can not be opened or connected
Closure problem
[batch dos-cmd command - summary and summary] - environment variables, path variables, search file location related instructions - set, path, where, what if there are spaces in the path parameters of
Pin details in rust
2022.6.26-----leetcode.710
MySQL lock details
若xn>0,且x(n+1)/xn>1-1/n(n=1,2,...),证明级数∑xn发散
Refer to | the computer cannot access the Internet after the hotspot is turned on in win11
MySQL环境变量配置的教程
How much do you know about the cause of amplifier distortion?
【11. 二维差分】
05 observer mode
索引+sql练习优化
Index +sql exercise optimization
JVM层次上的对象的创建过程和内存布局









