FirebirdSQL/5/4
出自VFP Wiki
FirebirdSQL/5/4
的原始碼
跳轉到:
導航
,
搜尋
根據以下的原因,您並無權限去做編輯這個頁面:
你所請求執行的操作被禁止。
你可以檢視並複製本頁面的原始碼。
sitorlaou http://www.go-mono.com/firebird.html ==Firebird and Interbase Data Provider== ===ADO.NET Data Provider for Firebird and Interbase databases=== Does not exist in Mono, but is a separate project The Firebird Relational Database is is an independent project which uses source code based on the Interbase source code released by Borland under the Interbase Public License Both the Firebird Relational Database and the Firebird .NET Data Provider can be downloaded from here The Firebird .NET Data provider has been made available by Carlos Guzm varez (aka "Carlos G.A."), who has also made a number of contributions to the OdbcJdbc code Bugs with Mono or the data provider should be reported in Mono's Bugzilla here. If you do not have Bugzilla user account, it is free and easy to create one here. ===Current Status=== Current stable version: 1.0 Current developement version: 1.5 The new data provider/driver is written in C# and provides a high-performance native implementation of the GDS32/API functions. This means that .Net developers will be able to access Firebird databases without the need of Firebird client install In support of the new module, a new mailing list firebird-net-provider has been created. Please use this list for any questions that you may have about the provider ===New features & enhancements in 1.5 version === *Better fit to ADO.NET *New GDS implementation *Implicit transaction support *Array datatype support *Firebird services API support *Firebird events API support *Stored procedure calls using Sql Server style *Support for retrieve database schema information ( FbConnection.GetDbSchema ) *Improved Commandbuilder implementation *Testing ===Need a working mono and mcs=== Need access to a Firebird Relational Database or you can download it from here Get the Firebird .NET data provider from here as firebird-net-provider. Make sure the Firebird .NET data provider binary assembly FirebirdSql.Data.Firebird.dll is installed in the same place as the mono class libraries. Has a ConnectionString format: "Database=databasefile.gdb;User=user;Password=pass;Dialect=3;Server=hostname" ===C# Example=== ====Source==== <pre> using System; using System.Data; using FirebirdSql.Data.Firebird; public class Test { public static void Main(string[] args) { string connectionString = "Database=C:\\PROGRAM FILES\\FIREBIRD\\EXAMPLES\\EMPLOYEE.GDB;" + "User=SYSDBA;" + "Password=masterkey;" + "Dialect=3;" + "Server=localhost"; IDbConnection dbcon = new FbConnection(connectionString); dbcon.Open(); IDbCommand dbcmd = dbcon.CreateCommand(); string sql = "SELECT * FROM employee"; dbcmd.CommandText = sql; IDataReader reader = dbcmd.ExecuteReader(); while(reader.Read()) { object dataValue = reader.GetValue(0); string sValue = dataValue.ToString(); Console.WriteLine("Value: " + sValue); } // clean up reader.Close(); reader = null; dbcmd.Dispose(); dbcmd = null; dbcon.Close(); dbcon = null; } } </pre> ====Building C# Example==== Save the example to a file, such as, TestExample.cs Build on Linux: <pre> mcs TestExample.cs -r System.Data.dll -r FirebirdSql.Data.Firebird.dll </pre> ====Build on Windows via Cygwin==== <pre> mono C:/cygwin/home/MyHome/mono/install/bin/mcs.exe TestExample.cs -lib:C:/cygwin/home/MyHome/mono/install/lib -r System.Data.dll -r FirebirdSql.Data.Firebird.dll </pre> ====Running the Example==== <pre> mono TestExample.exe </pre>
返回到
FirebirdSQL/5/4
。
檢視
頁面
討論
原始碼
歷史
個人工具
登入/建立新帳號 選單
導航
首頁
社群入口
現時事件
近期變動
隨機頁面
使用說明
搜尋
工具箱
鏈入頁面
相關頁面修訂記錄
所有特殊頁面