摘要:
一、多导航属性配型 在 Post 类中,可能需要跟踪是文章的创建者和最后编辑者,下面是 Post 类的两个新的导航属性。 1、设置导航属性方式 public class Post { public int PostId { get; set; } public string Title { get; 阅读全文
posted @ 2020-02-12 19:26
前线码农
阅读(2348)
评论(0)
推荐(1)
摘要:
一、EF Core 默认约定的导航属性 1、如果两个类型之间找到一对导航属性,则它们将被配置为同一关系的反转导航属性。 public class Blog { public int BlogId { get; set; } public string Url { get; set; } public 阅读全文
posted @ 2020-02-12 01:02
前线码农
阅读(5822)
评论(0)
推荐(1)

浙公网安备 33010602011771号