Firebird数据库VS2012配置数据源


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" 这一项,它在<其它>里呢。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值