Starts in:
2 DAYS
15 HRS
8 MIN
25 SEC
Starts in:
2 D
15 H
8 M
25 S
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

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06