1.安装好sqllite
2.下载system.data.sqlite.dll
选择对应平台的框架版本
System.Data.SQLite: Downloads Page
System.Data.SQLite: Downloads Page
3.C#操作sqlite
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SQLite;
namespace connectSQLite
{
public partial class Form1 : Form
{
string connectionString = "data source=" + @"D:\Soft-Execute\sql

本文介绍了如何在C#环境中连接和操作SQLite数据库。首先,需要安装SQLite并下载适用于C#的system.data.sqlite.dll库。接着,通过C#代码进行数据库查询等操作。
最低0.47元/天 解锁文章
721

被折叠的 条评论
为什么被折叠?



