从空模型创建实体数据模型
我可能在这里感到困惑(或者超出了我的想象)。
我正在尝试连接到 IBM i(又名 iSeries),并且我想尝试使用实体数据模型来实现这一点。我在网上找到的帮助对我来说帮助不大。如何添加与 .edmx 文件交互所需的逻辑,从而在应用程序的其余部分中使用?
我见过的大多数教程都是从数据库构建开始的。我没有那么奢侈,因为 IBM i 不是一个连接选项。有没有从头开始的?
I may be confused here (or over my head).
I am trying to connect to an IBM i (aka iSeries) and I want to try to use the Entity Data Model to implement this. The help I have found online has been less than helpful for me. How do I add the logic needed to interface with the .edmx file and thus be used in the rest of my application?
Most of the tutorials I have seen start by building from the database. I don't have that luxury as the IBM i is not an option to connect to. Is there any that start from scratch?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这里...
http://msdn.microsoft.com/en-us/ data/ff628199.aspx
...是一个介绍视频如何从空模型开始。
注意:本视频介绍实体框架 4(在 Visual Studio 2010 中),重点介绍如何使用设计器工具创建模型,然后根据该模型创建数据库 (SQL Server)。它不解释和涵盖 edmx 文件的手动编辑。我不确定这是否是您真正想要的。
Here ...
http://msdn.microsoft.com/en-us/data/ff628199.aspx
... is an introduction video how to start from an empty model.
Note: This video is about Entity Framework 4 (in Visual Studio 2010) and focusses on using the designer tools to create the model and then to create a database (SQL Server) from this model. It doesn't explain and cover manual editing of the edmx file. I'm not sure if this is what you are really looking for.
这篇文章似乎最接近我正在寻找的内容。然而,DB2 Connect 不是免费产品,购买该产品需要花费大量成本。
请继续关注我接下来要做的事情......
This article seems the closest to what I am looking for. However, DB2 Connect is not a free product and has a large cost associated with purchasing the product.
Stay tuned for what I do next....
我现在有这个工作。像平常一样通过 ADO.NET 或任何您想要的方法设置您的连接。然后执行以下操作:
这是已完成操作的基础知识。
I have this working now. Setup your connection like you normally would through ADO.NET or whatever method you want. Then do the following:
This is the basics of what was done.