> 文章列表 > C#中SQLite结构化操作

C#中SQLite结构化操作

C#中SQLite结构化操作

1、数据驱动库文件结构
Constant为配置文件,存放固定信息;
tb_User对应数据表;
PubConstant、DESEncrypt、DbHelperSQLite为通用文件。具体代码如下。
C#中SQLite结构化操作
2、用NuGet安装System.Data.SQLite
3、Constant.cs

public class Constant{//set database pathpublic static string dbPath = \"\";}

4、PubConstant.cs