Original address: http://www.haogongju.net/art/2561889
1, download System.Data.SQLite driver; Note: Depending on your CPU choice is 32-bit or 64-bit driver. It is recommended to select more than 4.0 platforms. Mine is: Sqlite-netfx40-setup-bundle-x64-2010-1.0.91.0.exe ;
2, after the installation is complete open C:\Program FILES\SYSTEM.DATA.SQLITE\2010\GAC the inside of the two DLLs copied to the CODESIMTH installation directory of the bin folder;
3. Configuration
According to your own CPU platform to open the following path, "may need to modify the file write security, set as everyone can, otherwise not save"
- %windir%\microsoft.net\framework\v4.0.30319\config\machine.config
- %windir%\microsoft.net\framework64\v4.0.30319\config\machine.config (This is what I chose)
- Found it
<
system.data
>节点添加下面的内容。
<
system.data
>
<
DbProviderFactories
>
<
add
name
=
"SQLite Data Provider"
invariant
=
"System.Data.SQLite"
description
=
".Net Framework Data Provider for SQLite"
type
=
"System.Data.SQLite.SQLiteFactory, System.Data.SQLite"
/>
</
DbProviderFactories
> </
system.data
>
|
4, restart the codesimth on the can.