随笔- 672
文章- 2
评论- 325
阅读-
281万
随笔分类 - EF Core 2.0 ManyToMany
Many-to-many relationships in EF Core 2.0 – Part 4: A more general abstraction
摘要:In the last few posts we saw how to hide use of the join entity from two entities with a many-to-many relationship. This post doesn’t add any addition
阅读全文
Many-to-many relationships in EF Core 2.0 – Part 3: Hiding as ICollection
摘要:In the previous post we ended up with entities that hide the join entity from the public surface. However, it was not possible to add or removed entit
阅读全文
Many-to-many relationships in EF Core 2.0 – Part 2: Hiding as IEnumerable
摘要:In the previous post we looked at how many-to-many relationships can be mapped using a join entity. In this post we’ll make the navigation properties
阅读全文
Many-to-many relationships in EF Core 2.0 – Part 1: The basics
摘要:转载这个系列的文章,主要是因为EF Core 2.0在映射数据库的多对多关系时,并不像老的EntityFramework那样有原生的方法进行支持,希望微软在以后EF Core的版本中加入原生支持多对多关系的Fluent API,这样这个系列的文章就不需要看了~ As of EF Core 2.0,
阅读全文