在使用Sqlite的过程中碰到了这样奇怪的问题:

Data Source cannot be empty.  Use :memory: to open an in-memory database

经检查,问题出在链接字符串中的DataSource中间没留空格。

正确的链接字符串类似下面的字符串:

Data Source=.\\CloudPos.db;Pooling=true;FailIfMissing=false

相关文章:

  • 2021-12-11
  • 2021-06-26
  • 2021-04-25
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-31
  • 2021-12-24
  • 2021-08-16
  • 2021-12-30
  • 2021-09-06
  • 2022-02-12
  • 2022-12-23
相关资源
相似解决方案