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

add-migration #1371


User avatar
0
julianrobertshawe created

Everything as being working fine and able to add new classes in the core application but running the add-migration does not add the code to create the table in the database. Changing existing classes creates the code to alter the table but unable to add new tables. Not sure if I am missing something basic here or there is something wrong with the project - thanks!


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Have you added a DbSet property to your dbcontext for your new entity? As you know, it's required by EF, rather than AspNet Zero. Example: <a class="postlink" href="https://www.aspnetzero.com/Documents/Developing-Step-By-Step#creating-person-entity">https://www.aspnetzero.com/Documents/De ... son-entity</a>