Base solution for your next web application
Open Closed

Tenant Id foreign key constraint not added for new entities #7658


User avatar
0
moetarhini created

I am using Aspnetzero framework with Angular 8. when I add new entity that implements IMustHaveTenant the TenantId is added to the entity table but the foreign key constraint is not added. My question is should we add this constrain for data integrity with AbpTenant table or not?. If yes what is the best practice to add it.

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

3 Answer(s)
  • User Avatar
    1
    BobIngham created

    @moetarhini - there is no foreign key because it is a multi-database solution. Your entity may not be in the same database as your tenant.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    maliming created
    Support Team

    https://github.com/aspnetboilerplate/aspnetboilerplate/issues/4865

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    moetarhini created

    Thanks guys

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)