求助 VB.net里连接SQLite
刚从VB6转到,请教大家如何连接SQLite,并且想把连接过程做成模块化,比如具体调用时我就想做成RunSQL("SQL语句")这样的形式,然后用DataGridView控件来显示查询的结果。请教大家怎么实现呢?
程序代码:
Imports System.Data.SQLite Imports System.Data Public Class Form1 Dim strCon As String ="Data Source=d:\Data\Mydata.sqlite" Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Con As New Data.SQLite.SQLiteConnection(strCon) Con.Open() ' 链接数据库 ..... End Sub End Class
[此贴子已经被作者于2017-9-24 17:03编辑过]