我最近将我的 SQL Server 数据库转换为 SQLite DB。但是当我尝试使用.Open()
它打开我的 SQLite 时,我会抛出这个错误:
Data Source cannot be empty. Use :memory: to open an in-memory database
编辑:添加连接字符串:
ConnectionString = @"Data Source=D:\XXX.db;Version=3";
connection = new SQLiteConnection(connectionString);
connection.Open();
为什么我会得到这个?我将相同的 SQL Server 数据库转换为 SQL CE 和 mySQL,但没有收到这些错误。