Code First CTP:多个PK或FK [英] Code First CTP: Multiple PKs or FKs
问题描述
您好,
在某些情况下,我们可能会重复PK / FK引用,因此实体A和实体B处于PK / FK关系,但是3次。 因此,实体A将拥有3个FK集合,而实体B将具有3个实体引用。 这对代码优先的
模板有何影响? 您是否遵循实体框架模型/数据库第一种方法(EntityA,EntityA1等)的命名约定,它知道如何挂钩这些关系,还是有额外的步骤,或者是什么?
谢谢。
http://linkedin.com/in/brianmains
您好bmains,
由于Code First是实体框架社区技术预览(CTP)的一部分。它还不是实体框架的一部分,我正在将此线程移至ADO.NET实体框架和LINQ to Entities(预发布)论坛,以获得更好的
支持。谢谢。
最好的问候,
Alex Liang
论坛中的MSDN订阅者支持
如果您对我们的支持有任何反馈,请联系
msdnmg@microsoft.com 跨度> 跨度>
Hello,
In some instances, we may have PK/FK references duplicated, so entity A and entity B are in a PK/FK relationship, but 3 times. So entity A would have 3 FK collections and entity B would have 3 entity references. How does that work with the code-first template? Do you follow the naming convention of Entity Framework model/database first approaches (EntityA, EntityA1, etc.), and it knows how to hook those relationships up, or is there an extra step, or what?
Thanks.
http://linkedin.com/in/brianmains
Hi bmains,
Since Code First is part of the Entity Framework Community Technical Preview (CTP). It is not yet part of Entity Framework, I am moving this thread to ADO.NET Entity Framework and LINQ to Entities (Pre-Release) forum for better support. Thanks.
Best regards,
Alex Liang
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg@microsoft.com
这篇关于Code First CTP:多个PK或FK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!