Visual Studio 2010 中的 Firebird 数据提供程序和实体框架
我正在尝试在 Visual Studio 2010 中将实体框架与 Firebird 数据库一起使用
有用信息:
- Windows 7 64位
- Visual Studio 2010 Ultimate
- Firebird 2.5.0
- Firebird .Net Data Provider 2.6
- DDEX 2.0.5
我已经完成:
- Installed Firebird服务器(它可以工作,我可以连接到数据库)
- 下载的DDEX(我已经运行了注册表文件)
- 在FirebirdSql.Data.FirebirdClient.dll上使用了gacutil 并检查它确实已安装,并且
- 在 32 位和 64 位文件夹中修改了 2.0 和 4.0 的 machine.config,以将提供程序包含在元素中
当我尝试在服务器资源管理器中添加连接时,我选择“Firebird”数据源”和 Firebird 数据提供程序,然后按继续。在“添加连接”对话框窗口中,我填写信息“数据源、数据库、用户、密码..”,然后按“确定”,然后出现以下错误:
无法找到或加载已注册的.Net Framework 数据提供程序
另外,当我尝试添加新的实体数据模型时,我看不到 Firebird 选项。我只能看到 SQL 选项。
我真的需要这方面的帮助,因为我在这方面花了很多时间,但无法让它发挥作用。我还阅读了其他相关问题,但我看到的建议似乎都不适合我..:(
I'm trying to use the Entity Framework with a Firebird database in Visual Studio 2010
Useful info:
- Windows 7 64-bit
- Visual Studio 2010 Ultimate
- Firebird 2.5.0
- Firebird .Net Data Provider 2.6
- DDEX 2.0.5
I've done:
- Installed Firebird server (and it works and I can connect to a database)
- Downloaded DDEX (I've run the registry files)
- used the gacutil on the FirebirdSql.Data.FirebirdClient.dll
and checked that it indeed was installed and it was - Modyfied the machine.config for both 2.0 and 4.0 in 32-bit and 64 bit folders to include the provider in the element
When I try to add a connection in the server explorer I choose "Firebird Data Source" and the Firebird data provider and press continue. I the "Add Connection" dialog window I fill in the info "data source, database, user, password.." and press ok and then I get the following error:
Failed to find or load the registered .Net Framework Data Provider
Also when I try to add a new Entity Data Model I cannot see the Firebird option.. I can only see SQL options.
I really need help on this one as I've spent many hours on this and I cannot get it to work.. I've also read other related questions on SO, but none of the suggestions I've seen seem to work for me.. :(
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题解决了..我不小心用 gacutil 安装了错误的 dll..安装了正确的 dll,现在我可以使用它了:)
Problem solved.. I accidently had installed the wrong dll with gacutil.. installed the correct one and now I can use it :)