Base solution for your next web application
Open Closed

Extension of non abstract classes not working #3310


User avatar
0
[email protected] created

Hi, We have done exactly the steps mention over here <a class="postlink" href="https://aspnetzero.com/Documents/Extending-Existing-Entities#derive-from-edition-entity">https://aspnetzero.com/Documents/Extend ... ion-entity</a>

The result is that it generate empty migration classes I Need urgent help would be kind if someone can give some hints


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Did you add your new entity to your DbContext. This might be a missing part of this document. We will fix documentation if you confirm that it works.

    Thanks.

  • User Avatar
    0
    [email protected] created

    Thanks for the help we have did that and it was working just wanted to know if that is the approach or not since the documentation did not mention that

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Yes, that is the correct way. We will fix the documentation.

    Thanks.