Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

extending Organization Entity #4126


User avatar
0
gen3media created

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)
  • User Avatar
    0
    ismcagdas created
    Support Team

    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.

  • User Avatar
    0
    aaron created
    Support Team

    Fixed in ABP v3.2.4