如何让 IBM DB2 提供者与 Entity Framework 4.0 一起工作

编程入门 行业动态 更新时间:2024-10-12 05:47:22
本文介绍了如何让 IBM DB2 提供者与 Entity Framework 4.0 一起工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

谁能告诉我如何让 DB2 提供程序显示在更改数据源"对话框窗口中?

Can someone please tell me how to get the DB2 provider to show up in the "Change Data Source" dialog window?

步骤:

  • 右键单击 edmx 设计图面.
  • 选择从数据库更新模型"
  • 在更新向导中,点击新建连接"
  • 在数据源"文本框旁边,点击更改..."
  • 在更改数据源"窗口中,我只在列表中看到以下数据源:

    In the Change Data Source window, I am only seeing the following data sources in the list:

    Microsoft SQL Server Microsoft SQL Server Compact 3.5 Microsoft SQL Server Database File <other>

    当我选择其他"时,我在数据提供者下拉列表中只看到两个条目:

    When I select "other", I only see two entries in the Data Provider dropdown:

    .Net Framework Data Provider for Microsoft SQL Server Compact 3.5 .Net Framework Data Provider for SQL Server

    如何让 DB2 提供程序显示在此处,以便我可以使用它们来为我的 DB2 表建模?

    How do I get the DB2 provider(s) to show up here so that I can use them to model my DB2 tables?

    我能够使用 VS2010 Server Explorer 成功连接到 DB2.连接字符串是:

    I am able to successfully connect to DB2 using the VS2010 Server Explorer. The Connection string for that is:

    "Provider=IBMDADB2.DB2COPY1;Data Source=DB2THLOC;Persist Security Info=True;User ID=****;Location=****" (stars for security)

    提供者被列为:

    .NET Framework Data Provider for OLE DB Type: DB2 Version: 08.01.0005

    提前致谢

    推荐答案

    您所描述的内容由 IBM 的 Visual Studio 插件包启用.目前vs2010没有这样的包.

    What you're describing is enabled by the Visual Studio Add-In package from IBM. Currently, there is no such package for vs2010.

    更多推荐

    如何让 IBM DB2 提供者与 Entity Framework 4.0 一起工作

    本文发布于:2023-11-24 11:06:43,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1624952.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:提供者   工作   IBM   Framework   Entity

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!