Data Source cannot be empty. Use :memory: to open an inmemory database Kevin

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

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

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

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

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

原文地址:https://www.cnblogs.com/kfx2007/p/3083066.html