开发者

How to integrate Sqlite to Visual Studio?

I'm planning to use Sqlite but I don't know how to integrate it to visual studio or use it. Any help please... 开发者_运维百科thanks.


I really recommend using System.Data.Sqlite ( http://sqlite.phxsoftware.com). Have been using it for quite some time and it works great every time! You can create tables using the designer, similar to for MSSQL etc. Recommended++


Depends on how you want to use it. The easiest is to get the amalgamation version - this version "contains all preprocessed C code combined into a single source file", meaning you have a single .h and .c file to add to your project. This is the officially recommended practice.

If you want to build a "proper" library or link against SQLite dynamically, you have a bit more work ahead, since there's no VS project/solution files included with SQLite. You'll have to set up your own library project, add the correct files from the sqlite-source-x.y.z.zip file, and set this project as a dependency on your main project. Doing this is actually officially discouraged.

EDIT:

Forgot to mention that the above solution is assuming C/C++, as OP didn't specify language.


use System.Data.Sqlite

System.Data.SQLite is an ADO.NET provider for SQLite.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜