Open Closed

Fill a table when a tenant is created #7564


User avatar
0
david.hurtado created
  • ABP Framework version: v7.0.1
  • UI Type: Blazor Server
  • Database System: EF Core -SQL Server,
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:
  • We need to fill a table when a tenant is created. How we could do this with this version 7.0.1

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

    Hi,

    you can use the data seed system, https://abp.io/docs/latest/framework/infrastructure/data-seeding

  • User Avatar
    0
    david.hurtado created

    Thanks @liangshiwei This works for a migration but i need when i create or insert a new tenant, no for migration.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    you can try create an event handler to subscribe to tenant creation events

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 13, 2025, 04:08