且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在代码优先EF4许多一对多的关系

更新时间:2022-12-30 19:33:06

修改:CTP4发布昨日晚间(2010年7月14日),而且现在支持这样的:

EDIT: CTP4 was released late yesterday (July 14 2010) and there is now support for this:

modelBuilder.Entity<邮政>()的hasMany(p => p.Tags).WithMany();

我发现的最后的,这目前是不可能的。微软正在添加此功能(只有一个导航属性​​)

I found out finally that this currently isn't possible. Microsoft is looking to add this feature (only one navigation property).

更​​多信息请参阅在MSDN论坛此链接: http://social.msdn.microsoft.com/Forums/en/adonetefx/thread/6920db2b-88c7- 4BEA-ac89-4809882cff8f

See this link on the MSDN forums for more information: http://social.msdn.microsoft.com/Forums/en/adonetefx/thread/6920db2b-88c7-4bea-ac89-4809882cff8f