实体Framwork MasterDetail [英] Entity Framwork MasterDetail

查看:56
本文介绍了实体Framwork MasterDetail的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Beth Massi在2008年为实体Framwork MasterDetail提供了一个很棒的HDI视频系列。 外键需要一些内务工作,即具有AssociationChanged事件(等)的事件处理程序是满足任何记录的父和子,即客户(父),订单(有问题的记录)和OrderDetail(子记录)所必需的。

Beth Massi has provider a great HDI Video series regarding Entity Framwork MasterDetail in 2008.  Foreign Keys require some housekeeping work, ie event handler with AssociationChanged event( etc.) is necessary to satisfy Parent and Children of any record, ie Customer(Parent), Order(record in question), and OrderDetail(Child record).

问题:(在VB 2010中)您是否必须使用这些事件通知来管理记录,父母和孩子?或者VB 2010是否为您处理了部分内容? 是否有解决此问题的示例或HDI视频或知识库文章? 我下载了VB 2010 Beta2(不要以为我可以证明VB 2010 Professional的成本是合理的,除非它做了额外的事情)并且Beta2不允许我打开样本。 

Question: (In VB 2010) Do you have to manage the records, parents and children with these event notifications? or does VB 2010 handle some of this for you?  Is there a sample or HDI video or Knowledge Base article that addresses this issue?  I downloaded VB 2010 Beta2(don't think I can justify the cost of VB 2010 Professional unless it does something extra) and the Beta2 does not let me open the samples. 

你能指导我吗?我可以就这个问题找到方向吗?

Can you direct me where I can get some direction on this issue?

如果对VB 2010没有任何帮助,请告诉我,以便我可以继续使用2008 Beth Massi的HDI视频所示的技术。

If there is no knew help with VB 2010, please let me know so I can proceed by using the techniques illustrated by the HDI videos of 2008 Beth Massi.

谢谢,

  Mike Sammer。

 Mike Sammer.

推荐答案

嗨Mike,

您应该将您的EF相关问题发布到 EF- / Linq2Entities论坛 - 你会在那里得到更好的答案!

you should really post your EF-related questions to the EF-/Linq2Entities forum - you'll get better answers there!


这篇关于实体Framwork MasterDetail的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆