Development
1. Since EF does not support Codefirst, you can start using SQL for development.
Deployment Installation
2. Then you can find the SQL to SQLite tool (http://www.cnblogs.com/walkingp/archive/2010/04/08/1707834.html)
3. Download a case program here (http://www.cnblogs.com/Gyoung/p/4023275.html). Re-build your program according to the case.
4. To the SQLite website to download the installer, I downloaded the "Sqlite-netfx40-setup-bundle-x86-2010-1.0.97.0.exe" version. Install on your own machine find the installation folder (C:\Program Files (x86) \system.data.sqlite\2010\bin), the actual installation process contains the DLL registered SQLite.
5. Download the patch (http://www.microsoft.com/zh-cn/download/confirmation.aspx?id=8328) to Microsoft and install it.
6. Find the three files in the SQLite installation directory System.data.sqlite.linq.dll,system.data.sqlite.ef6.dll,system.data.sqlite.dll. or download the compression pack (Sqlite-netfx40-binary-bundle-win32-2010-1.0.98.0.zip) on the SQLite official website, using the registration tool in. NET 4.0 (C:\Windows\ Microsoft.net\framework\v4.0.30319\ngen.exe) registers the DLL. (What needs to be done inside the packaging tools when deploying to other non-development environments)
The cmd command that registers (requires Administrator privileges) is
---C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install "System.Data.SQLite.Linq.dll"
Three files are registered separately. You can allow ef+sqlite on the installation computer.
NET 4.0+ef6+sqlite use, install, package