Enable / Disable Multitenancy
ertugrulkaya opened this issue · comments
Hello Dear Mugesh
Thanks for everything what you and team have done up to now My suggestion is about multitenancy. If there is configuration which enabled and disabled multitenancy, this should help to use app with two way. If multitenancy disabled, then the applicantion should used without tenancy.
It is a little hard to disable multitenancy in this project since multitenancy is tightly coupled in the project imo. You should have add so many checks if multitenancy enabled to proceed with the rest of the code. I would suggest you to comment out all builder.<TEntity>().IsMultitenant()
statements (there will be no Where TenantId == ....
sql statement generation anymore) and use only root tenant on your own.
Rather, you can go with a single tenant approach. I don't see any problem with that. This repo is specifically built to support multi tenants.