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)
-
0
Hi there , Try to add your new entity in the context file. :)
-
0
Thanks @Shaariii :),
Yes, you need to add it to DbContext.
-
0
<cite>Shaariii: </cite> Hi there , Try to add your new entity in the context file. :)
Thanks a lot! :)