When testing with another tenant, I see that the tenant filters are not being applied to the entities because of failing conditions present in every DbContext.
This also affects Soft Delete filters.
We need to come up with conditions for when to apply filters. As it stands now, each service does entities a bit different from others.
Perhaps we need to unify these ways as well.
As it is now, we iterate over entity types and determine whether or not to apply filters to them. But the conditions have turned out more complex. Especially when taking inheritance into account for entity types - CatalogContext.
When testing with another tenant, I see that the tenant filters are not being applied to the entities because of failing conditions present in every DbContext.
This also affects Soft Delete filters.
We need to come up with conditions for when to apply filters. As it stands now, each service does entities a bit different from others.
Perhaps we need to unify these ways as well.
As it is now, we iterate over entity types and determine whether or not to apply filters to them. But the conditions have turned out more complex. Especially when taking inheritance into account for entity types - CatalogContext.