Finbuckle / Finbuckle.MultiTenant

Finbuckle.MultiTenant is an open-source multitenancy middleware library for .NET. It enables tenant resolution, per-tenant app behavior, and per-tenant data isolation.
https://www.finbuckle.com/multitenant
Apache License 2.0
1.31k stars 267 forks source link

MultiTenantDbContext now throws when saving non multitenant entities #815

Closed LodewijkSioen closed 5 months ago

LodewijkSioen commented 5 months ago

In this commit the EnforceMultiTenant method was changed to always throw if tenantInfo is null. It used to be that it would only throw when the changeTracker contained multitenant entities.

Is there a reason for this change? Because now I need to split my DbContext in order to move to v7.0.

AndrewTriesToCode commented 5 months ago

It was done to to help with nullability static analysis but obviously that is not a good change so I will fix that this weekend.