Base solution for your next web application
Open Closed

How can i bypass TenantId at public site ? #10301


User avatar
0
muhittincelik created

Hi,

I want to make a technical service software.

Every technical service will be a tenant. The end user will choose a suitable technical service from the public site and register for it. At another time, you can register at a different technical service.

I have 2 questions that I do not know how to make a logic about this.

1 - The end user has records in which technical service, how can he watch from the public site. 2 - Technical services will be listed on the public site and each technical service will determine in its own tenant which subjects it provides services and these will appear on the public site. 3- In which tenant will the end user open the account ?

Thanks

Muhittin


5 Answer(s)
  • User Avatar
    0
    muhittincelik created

    Like marketplace (Amazon, sahibinden.com, gittigidiyor etc.) Each seller is a tenant. And customer buy products from any seller and list orders.

    I would be glad if anyone who made a similar project explains the logic with aspnetzero framework.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @muhittincelik

    Multi tenancy in AspNet Zero is designed to separate data between tenants. In your case, I think it will be better to define a new entity named Customer (or something similar) for end users. Using current User entity for public users will make the logic complicated.

    For listing items belonging to different tenants, you can use https://aspnetboilerplate.com/Pages/Documents/Data-Filters#disable-filters

  • User Avatar
    0
    muhittincelik created

    Thanks

  • User Avatar
    0
    muhittincelik created

    So we need a new sign-in and user management for public users. Right ?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @muhittincelik

    Yes, correct.