当前位置:网站首页>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 文件夹包含应用程序的本地数据存储

边栏推荐
- 参考 | Win11 开启热点之后电脑不能上网
- [batch dos-cmd command - summary and summary] - how to distinguish the internal command and external command of CMD, and the difference between CMD command and run (win+r) command,
- 2022.6.26-----leetcode.710
- 【12. 最大连续不重复子序列】
- 05 observer mode
- Order by injection of SQL injection
- Redis transactions
- SIG associé: toutes les routes mènent à ue5
- University database mysql
- 索引+sql练习优化
猜你喜欢

"Short video" Linxia fire rescue detachment carries out fire safety training

Redis transactions

Import and export database related tables from the win command line

MySQL lock details

Coggle 30 days of ML July competition learning

PayPal账户遭大规模冻结!跨境卖家如何自救?

参考 | Win11 开启热点之后电脑不能上网

05 观察者(Observer)模式

Binary tree structure and heap structure foundation
![[12. maximum continuous non repeating subsequence]](/img/eb/230cd6062e28374c86863f2122e43b.png)
[12. maximum continuous non repeating subsequence]
随机推荐
闭包问题
Import and export database related tables from the win command line
2022.06.26(LC_6101_判断矩阵是否是一个 X 矩阵)
100% understanding of 5 IO models
【批处理DOS-CMD命令-汇总和小结】-环境变量、路径变量、搜索文件位置相关指令——set、path、where,cmd命令的路径参数中有空格怎么办
MATLAB小技巧(19)矩阵分析--主成分分析
【批处理DOS-CMD命令-汇总和小结】-输出/显示命令——echo
盲测调查显示女码农比男码农更优秀
Matlab tips (18) matrix analysis -- entropy weight method
分析日志.log
JS EventListener
Mapping of Taobao virtual product store opening tutorial
2022.6.26-----leetcode.710
vim 从嫌弃到依赖(20)——global 命令
The IPO of Yefeng pharmaceutical was terminated: Yu Feng, the actual controller who had planned to raise 540million yuan, made P2P investment
【c ++ primer 笔记】第3章 字符串、向量和数组
What is futures reverse documentary?
直接修改/etc/crontab 文件内容,定时任务不生效
MySQL锁详解
(original) custom drawable