Base solution for your next web application
Open Closed

Extending OrganizationUnit #3235


User avatar
0
pointlevel created

Hello!

I´m trying to extend the OrganizationUnit the same way it is explained on this page: <a class="postlink" href="https://www.aspnetzero.com/Documents/Extending-Existing-Entities#extending-non-abstract-entities">https://www.aspnetzero.com/Documents/Ex ... t-entities</a>

Like this:

using Abp.Organizations;

namespace Company.MyApp.OrganizationUnits
{
    public class MyOrganizationUnit : OrganizationUnit
    {
        public virtual string Phone1 { get; set; }
    }
}

But when i run the Add-migration, no changes are made. The migration is empty.


3 Answer(s)
  • User Avatar
    0
    shaariii created

    Hi there , Try to add your new entity in the context file. :)

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks @Shaariii :),

    Yes, you need to add it to DbContext.

  • User Avatar
    0
    pointlevel created

    <cite>Shaariii: </cite> Hi there , Try to add your new entity in the context file. :)

    Thanks a lot! :)