.NET Core 3 EF 中不存在没有联合实体的 M-N 关系,也没有关于原因的文档
M-N relation without joint entity not present in .NET Core 3 EF and no docs on why
从 .NET Core 3 开始,implied(旧文章提到 至少从版本 3 开始,其他博客也讨论过) A 和 B 之间管理 M-N 关系的联合实体将被删除。
但是,我现在似乎无法让它工作。检查breaking changes and new features,似乎仍然这个特征还没有被诱导。
我是不是错过了做错的功能,还是它仍然没有在 EF Core 3 中引入?如果是这样,有关它的任何文档在哪里?我还没有找到任何确认的文章糟糕,抱歉,还没有发生。
这是一项非常重要的功能,并且很早就在 EF for .NET Framework 中实现了。
在 EF Core 发行说明 here (which you kindly provided) it references issue 9914 - Shared-type entities (part of property bag entities) which is mentioned as part of issue 10508 - Implement many-to-many relationships without mapping join table 的 'Postponed features' 部分中添加以下注释:
Current plan for 3.0 is to implement skip-level navigation properties as a stretch goal. If property bags (#9914) also make it into 3.0, enabling a seamless experience for many-to-many could become easier.
所以看起来它没有成功,但你至少可以追踪你对这些问题的兴趣
嗯,从 Relationship Docs 看来它还没有实现。
Many-to-many relationships without an entity class to represent the join table are not yet supported. However, you can represent a many-to-many relationship by including an entity class for the join table and mapping two separate one-to-many relationships.
如果你看一下 aspnet/EntityFrameworkCore #10508 它仍然是一个未解决的问题,它没有计划用于 3.0
Current plan for 3.0 is to implement skip-level navigation properties as a stretch goal. If property bags (#9914) also make it into 3.0, enabling a seamless experience for many-to-many could become easier. - divega
它也是not planned for 5.0所以我想我们必须等待它。
从 .NET Core 3 开始,implied(旧文章提到 至少从版本 3 开始,其他博客也讨论过) A 和 B 之间管理 M-N 关系的联合实体将被删除。
但是,我现在似乎无法让它工作。检查breaking changes and new features,似乎仍然这个特征还没有被诱导。
我是不是错过了做错的功能,还是它仍然没有在 EF Core 3 中引入?如果是这样,有关它的任何文档在哪里?我还没有找到任何确认的文章糟糕,抱歉,还没有发生。
这是一项非常重要的功能,并且很早就在 EF for .NET Framework 中实现了。
在 EF Core 发行说明 here (which you kindly provided) it references issue 9914 - Shared-type entities (part of property bag entities) which is mentioned as part of issue 10508 - Implement many-to-many relationships without mapping join table 的 'Postponed features' 部分中添加以下注释:
Current plan for 3.0 is to implement skip-level navigation properties as a stretch goal. If property bags (#9914) also make it into 3.0, enabling a seamless experience for many-to-many could become easier.
所以看起来它没有成功,但你至少可以追踪你对这些问题的兴趣
嗯,从 Relationship Docs 看来它还没有实现。
Many-to-many relationships without an entity class to represent the join table are not yet supported. However, you can represent a many-to-many relationship by including an entity class for the join table and mapping two separate one-to-many relationships.
如果你看一下 aspnet/EntityFrameworkCore #10508 它仍然是一个未解决的问题,它没有计划用于 3.0
Current plan for
3.0is to implement skip-level navigation properties as a stretch goal. If property bags (#9914) also make it into3.0, enabling a seamless experience for many-to-many could become easier. - divega
它也是not planned for 5.0所以我想我们必须等待它。