Open Closed

Entity creation/use for each tenant #4881


User avatar
0
portx-dev created

It is possible to create Entities for all tenants using ABP Suite, but what should I do if I want to create different Entities for each tenant, or if I want to control the Entities that can be used by each tenant? Please let me know if you have any samples.

For example, Entity01 can be used only for tenant 01, and Entity02 and Entity03 can be used only for tenant 02.


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

    Hi,

    Short answer

    The short answer is you cannot do this using the abp suite.


    Long answer

    I think you misunderstood the tenant logic.

    Many line of business applications are designed to work with multiple customers. It is important to secure the data so that customer data isn't "leaked" or seen by other customers and potential competitors. These applications are classified as "multi-tenant" because each customer is considered a tenant of the application with their own set of data.

    reference: https://learn.microsoft.com/en-us/ef/core/miscellaneous/multitenancy

    From this explanation, the tenant is related to the data, so you can think that while the user of one tenant will see some data, the user of another tenant will see different data.

    As a result, as you know, data != entity;

    See for more information: https://docs.abp.io/en/abp/latest/Multi-Tenancy

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38