C # Operation SQLite

Source: Internet
Author: User
Tags sqlite sqlite database

1. Download Sqlite:http://system.data.sqlite.org/downloads/1.0.94.0/sqlite-netfx20-setup-bundle-x86-2005-1.0.94.0.exe

2, install the downloaded file: Sqlite-netfx20-setup-bundle-x86-2005-1.0.94.0.exe

3. Right-click C # Project Properties:

4. The "Target frame" in the "Application" tab is changed to:. NET Framework 3.5

5. "Target platform" in "Generate" tab changed to: x86

6, add reference just SQLite installation path under the System.Data.SQLite.dll file, the default path is: C:\Program files (x86) \system.data.sqlite\2005\bin

7. Introduction of namespaces: Using System.Data.SQLite;

Complete!

Test code: Sqliteconnection.createfile ("Test.sqlite");

After running, you can find the project folder under the Bin\Debug path, resulting in the Test.sqlite database file.

C # Operation SQLite

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.