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

Extend not working #4975


User avatar
0
manojreddy created

Trying to extend Edition, but its generating empty migration.

public class Class1 : Edition
    {
        public virtual long Price { get; set; }
    }

3 Answer(s)
  • User Avatar
    0
    yekalkan created

    Have you added DbSet property of your entity in DbContext?

    public virtual DbSet<Class1> Class1 { get; set; }
    
  • User Avatar
    0
    manojreddy created

    @yekalkan, Thanks I already solved my issue. This fix has to be mentioned in the document. Otherwise, everybody will face issues.

  • User Avatar
    0
    yekalkan created

    I also realized that and created a pull request yesterday <a class="postlink" href="https://github.com/aspnetzero/documents/pull/72">https://github.com/aspnetzero/documents/pull/72</a>