Open Closed

Entity Framework & Custom Migrations #5271

kyckradmin created

Hi Folks, We need to add some additional database structures and data to the base database. I'm just wondering if you have a recommended approach to managing this so that both ASP.NET Zero and our own migrations can be kept in sync going forward. My main concern is that if we put these in the actual EntityFrameworkCore project they will get over written on an upgrade of the product.

Anyone any suggestions?

1 Answer(s)
  • 0
    maliming created
    Support Team

    The best way to modify a database in EntityFrameworkCore is via migration. The abp zero upgrade will not affect your previous database migration. Migration records are automatically merged. :)