1. 程式人生 > >SQLlite.CodeFirst模式出現FullUri format is currently only supported for :memory:.

SQLlite.CodeFirst模式出現FullUri format is currently only supported for :memory:.

這個問題是配置資料連線串格式錯誤導致的問題,

在連線串中,路徑地址要加上data source=修飾符

[email protected]"data source={DataSourcePath}"
例如:

ConfigHelper.SetConnectionString("DefaultConnection", [email protected]"data source={DataSourcePath}", "System.Data.SQLite");
這裡我用到的是自己編寫的confighelper,原始檔在之前的文件裡,自己找