Extract: extending existing entities document A NOTE ABOUT EF CORE 2.0 In EntityFramework Core 2.0, OnModelCrreating must be used to configure extended entity if base entity contains a self reference (see <a class="postlink" href="https://github.com/aspnet/EntityFrameworkCore/issues/9704">https://github.com/aspnet/EntityFramewo ... ssues/9704</a>). An example of this case is extending OrganizationUnit entity.
Question: Can you please elaborate - we are trying to add a field to organization and it is not clear what needs to be done. We want to add a simple string field called partnerID so that it can be managed as a field on organization.
thank you for your assistance
2 Answer(s)
-
0
Hi,
The workaround for the problem is explained here <a class="postlink" href="https://github.com/aspnet/EntityFrameworkCore/issues/9704#issuecomment-330325854">https://github.com/aspnet/EntityFramewo ... -330325854</a>.
Basically you can name your derived entity with X or Z letter like XMyOrganizationUnit or ZMyOrganization unit until EF Core's next release.
-
0
Fixed in ABP v3.2.4