我设计了三个具有导航属性的实体(代码优先方法,省略了不必要的属性):public class Image public long Id { get; initImage ImageLogo { get; set; }业务规则是:
在所有casesPublication/Player中,图像都是依赖实体,是这些(one-to-one-or-zero)中的主要实体,可以有相关的图像,也可以没有(one-to-o
我以前从未使用过导航属性,所以我试图了解它们是如何工作的。我更喜欢通过fluentAPI来映射它们,作为首选。有谁能给我解释一下如何用fluentAPI来建立这种关系?I want to understand the fluentAPI used to construct this type of relationship.I have been able to use <e