Open Closed

Adding Tenant Module To The Project Later #8972


User avatar
0
vaturix created

Hello, we created a project with DDD and made a lot of development on the project. We did not create the tenant module when we opened the project, but now I want to use the tenant module in our project. How can we add the tenant module to our project later and add some existing users as tenants? we use mvc ui.

  • ABP Framework version: vX.X.X

  • UI Type: MVC

  • Database System: EF Core PostgreSQL

  • Tiered (for MVC) or Auth Server Separated (for Angular): mvc

  • Exception message and full stack trace:

  • Steps to reproduce the issue:


1 Answer(s)
  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Hi,

    There are a few questions I would like to ask in order to better answer your question.

    1. Check if there is Volo.Saas.Domain.Shared reference in MyProjectName.Domain.Shared.csproj in MyProjectName.Domain.Shared project.

    2. If so, check IsEnabled property in MultiTenancyConsts class in MultiTenancy folder in MyProjectName.Domain.Shared project. This is probably set to false in your case.

    If so, simply set this value to true and create a new migration. However, if you don't have a reference to the SaaS module, we will need to add the SaaS module first and move on. I can guide you according to your answers.

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.3.0-preview. Updated on April 10, 2025, 12:38