NET 4.0+ef6+sqlite use, install, package

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.