BEST
DEALS
OF THE
YEAR!
SAVE UP TO $3,000
24 NOV
1 DEC
00 Days
00 Hrs
00 Min
00 Sec
Open Closed

How can I create new tenant in data seeding step? #6129


User avatar
0
alper created
Support Team Director

I want to add new tenant in DB seeding phase


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

    Create the following DemoDataSeedContributor.cs in your Domain project. This is a sample class that seeds your DB with dummy editions, tenants, roles, users and organizations. This class implements IDataSeedContributor, therefore, DbMigrator will add the specified data to your DB.

    You can find the class at https://gist.github.com/ebicoglu/f1bafc8f339924c0fe2baac679353077

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.1.0-preview. Updated on November 11, 2025, 06:29
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.