CreateDatabase is not supported by the provider
1.问题描述
C#语言开发找中,使用SQLite数据库,使用工具是System.Data.SQLite,出现错误是:【CreateDatabase is not supported by the provider】,如图
2.解决方案
在配置文件中,找到SQLite数据库的文件地址Source的地址改为正确的地址,就可以了
<connectionStrings>
<add name="SQLiteDbContext" connectionString="Data Source=D:\project\bin\Debug\Vision3.db;Version=3;" providerName="System.Data.SQLite" />
</connectionStrings>