1、下载firebird数据库的 Firebird ADO.NET Data Provider安装版。
下载地址:http://www.firebirdsql.org/en/net-provider/
2、点击安装。
3、Machine.config 更新
在下面两个文件指定位置添加内容(红色)
文件1:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config
文件2:C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\CONFIG\machine.config
内容:
<add name="FirebirdClient Data Provider" invariant="FirebirdSql.Data.FirebirdClient" description=".NET Framework Data Provider for Firebird" type="FirebirdSql.Data.FirebirdClient.FirebirdClientFactory, FirebirdSql.Data.FirebirdClient, Version=%Version%, Culture=%Culture%, PublicKeyToken=%PublicKeyToken%" />位置:
<configuration>
...
<configSections>
...
<section name="firebirdsql.data.firebirdclient" type="System.Data.Common.DbProviderConfigurationHandler, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
...
</configSections>
...
<system.data>
<DbProviderFactories>
...
<add name="FirebirdClient Data Provider" invariant="FirebirdSql.Data.FirebirdClient" description=".Net Framework Data Provider for Firebird" type="FirebirdSql.Data.FirebirdClient.FirebirdClientFactory, FirebirdSql.Data.FirebirdClient, Version=%Version%, Culture=%Culture%, PublicKeyToken=%PublicKeyToken%" />
...
</DbProviderFactories>
</system.data>
...
</configuration>
说明:
%Version%
值是你安装的版本号
%Culture%
值是"neutral"
%PublicKeyToken%
是你在你机子里的注册表里找到的值
用你找到的值替换红色里的相应的值即可。
4、完成后,重启VS2012在数据源处即可以看见".Net Framework Data Provider for Firebird" 这一项,它在<其它>里呢。