用于Visual Studio和实体数据模型的U2数据库加载项

时间:2012-12-03 05:03:37

标签: u2netdk

我想从UniVerse / UniData数据库创建实体数据模型。

3 个答案:

答案 0 :(得分:1)

我想自己回答这个问题。

  1. 下载并安装U2NETDK v1.2.0 BETA enter image description here

  2. 使用VS2010确认安装 - >帮助 - >关于

  3. enter image description here

    1. 使用控制面板确认安装 - >程序功能
    2. enter image description here

      1. 启动Visual Studio 2010.转到View-> Server Explorer-> Add Connection。转到“更改数据源”对话框。选择“U2数据库” enter image description here

      2. 填写连接字符串。测试连接。选择“确定” enter image description here

      3. U2连接将添加到Server Explore中 enter image description here

      4. 打开VS2010 WinForm应用程序。右键单击解决方案资源管理器并添加新项目。 enter image description here

      5. 选择数据 - > ADO.NET实体数据模型。给出一个名字,例如'Student.edmx'。您将在EDM Designer中看到学生数据模型。 enter image description here

      6. 选择“从数据库生成” enter image description here

      7. 选择'demoxxxxxx'连接字符串

      8. enter image description here

        1. 选择所有表格并按“完成” enter image description here

        2. 您将在实体数据设计器中看到学生模型 enter image description here

        3. 选择“数据 - >显示数据源” enter image description here

        4. 在Designer模式下打开Form1

        5. enter image description here

          1. 打开工具箱。转到“数据”。将“DataGridView”拖放到“表单设计器”中。点击“选择数据来源” enter image description here

          2. 选择“添加项目数据源” enter image description here

          3. 选择'对象' enter image description here

          4. 选择'STUDENT_NF_SUB' enter image description here

          5. 您将看到带有学生实体元数据的'DataGridView'。 enter image description here

          6. 双击表格。它会带你到后面的代码。创建一个demoEntity上下文。查询Student表并使用datagrid绑定。 enter image description here

          7. 转到Debug-> start without Debugging enter image description here

          8. 查看已完成的申请表 enter image description here

答案 1 :(得分:0)

Rajan - 你的演示版在1.2.0版本中展示了UniObjects Toolkit for DotNet,我很想看看这个,但是在Rocket网站上搜索可供下载的最新版本是UO v1.1.1。有没有办法获得更新的位?

答案 2 :(得分:0)

请注意,U2NETDK v1.2.0已经发布,不再处于测试阶段。要使用Visual Studio加载项,您必须从软件提供商处获得许可。 ADO.NET提供程序和本机API(以前称为UO.NET)免费提供。 U2askus@rocketsoftware.com是一个很好的电子邮件,用于提供一般产品信息;如果您与Rocket Software签订了支持维护合同,则电子邮件为u2support@rocketsoftware.com。如果您从ISV或经销商处获得维护,您可以联系他们寻求支持。