Open Closed

How can i seed the user admin's of a tenant without running the DbMigrator? #1830


User avatar
0
takahiro created
  • ABP Framework version: v4.4.0
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

It's not really a problem or bug, but i'm not understanding what should i do when i create a new tenant, i always need to run the DbMigrator to seed the tenant's admins to the database, what should i do, to automatically seed the database when i create a tenant?


1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi

    what should i do, to automatically seed the database when i create a tenant?

    It is already like this, you can see MyProjectNameTenantDatabaseMigrationHandler in your domain project.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on August 28, 2025, 08:29