firebird Embedded模式(.net 3.5)
來源:懂視網(wǎng)
責(zé)編:小采
時間:2020-11-27 22:44:43
firebird Embedded模式(.net 3.5)
firebird Embedded模式(.net 3.5): 代碼如下:Dim connectionString = New FbConnectionStringBuilder() connectionString.ClientLibrary = fbembed.dll connectionString.ServerType = FbServerType.Embedded connectionString.D
導(dǎo)讀firebird Embedded模式(.net 3.5): 代碼如下:Dim connectionString = New FbConnectionStringBuilder() connectionString.ClientLibrary = fbembed.dll connectionString.ServerType = FbServerType.Embedded connectionString.D
代碼如下:
Dim connectionString = New FbConnectionStringBuilder()
connectionString.ClientLibrary = "fbembed.dll"
connectionString.ServerType = FbServerType.Embedded
connectionString.Database = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Test.Fdb")
connectionString.Pooling = True
connectionString.Dialect = 3
Dim conn As New FbConnection(connectionString.ToString)
Dim comm As New FbCommand("select first 10 * from test", conn)
conn.Open()
Dim fp As New FbDataAdapter(comm)
Dim ds As New DataSet
fp.Fill(ds)
fp.Dispose()
comm.Dispose()
conn.Close()
Repeater1.DataSource = ds.Tables(0)
Repeater1.DataBind()
ds.Dispose()
文件下載
聲明:本網(wǎng)頁內(nèi)容旨在傳播知識,若有侵權(quán)等問題請及時與本網(wǎng)聯(lián)系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
firebird Embedded模式(.net 3.5)
firebird Embedded模式(.net 3.5): 代碼如下:Dim connectionString = New FbConnectionStringBuilder() connectionString.ClientLibrary = fbembed.dll connectionString.ServerType = FbServerType.Embedded connectionString.D