Ouvert Fermé

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


User avatar
0
alper créé
Équipe d'assistance Director

I want to add new tenant in DB seeding phase


1 Réponse (s)
  • User Avatar
    0
    alper créé
    Équipe d'assistance 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

Made with ❤️ on ABP v8.2.0-preview Updated on mars 25, 2024, 15:11