What's New in v11.0.0
This page only lists release update details specific to v11.0.0. Release update details for all releases are shown in the history page.
11.0.0 (2026-11-24)
⚠ BREAKING CHANGES
abstractions
- Replace IMultiTenantContext with ITenantContext and remove IMultiTenantContextAccessor, IMultiTenantContextSetter, and the accessor implementations. Consumers must use the ambient tenant context scope APIs. (#1212 by @AndrewTriesToCode)
- ITenantResolver.ResolveAsync returns tenant information directly and exposes the primary store and cache metadata through the updated resolver contract. (#1212 by @AndrewTriesToCode)
aspnetcore
- UseMultiTenant
() throws a MultiTenantException at startup unless AddHttpAmbientTenantScope() was called, either directly or by an ASP.NET Core builder helper. Apps that configure only general-purpose methods such as WithStaticStrategy, WithDelegateStrategy or WithStrategy must call AddHttpAmbientTenantScope() themselves. The middleware also throws for a request that has no active ambient tenant scope. (#1238 by @AndrewTriesToCode) - A tenant set earlier in the pipeline, for example with HttpContext.SetTenantInfo in middleware before UseMultiTenant, is now kept and tenant resolution is skipped. Previously the middleware began a new scope after resolution and discarded it. (#1238 by @AndrewTriesToCode)
- ASP.NET Core integrations no longer expose or consume the removed IMultiTenantContext accessor and setter abstractions; inject ITenantContext instead. (#1212 by @AndrewTriesToCode)
efcore
- Querying a multi-tenant entity type through a context without a tenant set now returns no rows. It previously threw an InvalidOperationException ("An exception was thrown while attempting to evaluate a LINQ query parameter expression") wrapping a NullReferenceException. (#1239 by @AndrewTriesToCode)
IsMultiTenanton entity types was a method and is now a property. Its receiver is now non-nullable, so callers that pass a nullable entity type (for example the result ofFindEntityType) get nullable warnings and must check for null first. (#1239 by @AndrewTriesToCode)- Multi-tenant DbContext constructors no longer accept IMultiTenantContextAccessor; resolve ITenantContext through the ambient scope. (#1212 by @AndrewTriesToCode)
efcoreidentity
- Multi-tenant identity DbContext constructors no longer accept IMultiTenantContextAccessor; use ITenantContext from the ambient scope. (#1212 by @AndrewTriesToCode)
finbuckle
- ITenantScopeProvider has two new members, EndScope() and HasScope. Custom implementations of ITenantScopeProvider must implement them. (#1238 by @AndrewTriesToCode)
ConfigurationStorecreates tenants withConfigurationBinder.Get<TTenantInfo>()from the tenant section layered overDefaults, instead of binding both sections onto an uninitialized object. A type with no parameterless constructor must have a single public constructor whose parameters match configuration keys (or use the new factory overload). Collection properties present in bothDefaultsand a tenant section are overlaid by index rather than appended (for example["a","b"]inDefaultsand["c"]in a tenant gives["c","b"]); dictionary properties are merged by key. Because constructors and property initializers now run, plain properties keep their initializer values when not configured, and collection initializers are added to rather than replaced. (#1232 by @AndrewTriesToCode)- Removes the public TypeExtensions.ImplementsOrInheritsUnboundGeneric method. (#1212 by @AndrewTriesToCode)
- Remove accessor and setter registrations in favor of ITenantContext and ITenantScopeProvider. (#1212 by @AndrewTriesToCode)
- IMultiTenantStore methods accept cancellation tokens; RemoveAsync removes by tenant ID and RemoveByIdentifierAsync removes by identifier. (#1212 by @AndrewTriesToCode)
- Replace ITenantResolver.Stores with one primary Store and StoreCaches, and remove DistributedCacheStore and MultiTenantStoreWrapper. (#1212 by @AndrewTriesToCode)
- Remove InMemoryStoreOptions and its configuring overload. Tenant identifiers are case-insensitive and initial tenants are added through TenantManager. (#1212 by @AndrewTriesToCode)
general
- Only the net11.0 framework is targeted and runtime async is enabled. (#1237 by @AndrewTriesToCode)
ITenantInfois nowITenantInfo<TId>whereTIdis anyEquatable<TId>, e.g.intorGUID. Other types and methods taking aTTenantTypegeneric type parameter now also take aTIdgeneric type parameter. (#1188 by @mvanput)default(TId)is treated as tenant not-set similar to how previouslynullwas considered not-set. (#1188 by @mvanput)
Features
aspnetcore
- require a singleton ITenantScopeProvider at startup (#1238 by @AndrewTriesToCode) (512544b)
efcore
- validate the tenant id type when the model is built (#1239 by @AndrewTriesToCode) (713154a)
finbuckle
- require OSMF EULA acceptance for official packages (#1241 by @AndrewTriesToCode) (b90a1ff)
- attest NuGet packages and assemblies before publishing (#1242 by @AndrewTriesToCode) (e12e081)
- add RunInTenantScopeAsync to run a delegate as a tenant (#1238 by @AndrewTriesToCode) (8c66dd9)
Bug Fixes
aspnetcore
- begin the ambient tenant scope from a startup filter (#1240 by @AndrewTriesToCode) (638b09e)
finbuckle
- keep decorated services owned by the container (#1238 by @AndrewTriesToCode) (4d4e8b5)
- key in-memory store lookups by snapshot ids (#1232 by @AndrewTriesToCode) (4555318)
- propagate cancellation through remote store requests (#1212 by @AndrewTriesToCode) (dfd1e67)