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.
3 Answer(s)
-
1
@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.
-
0
https://github.com/aspnetboilerplate/aspnetboilerplate/issues/4865
-
0
Thanks guys