Skip to content

Search EricksonLopez.* Ecosystem

Type a library name, NuGet package ID, .NET type, or architectural concept to search across the portal.

Troubleshooting — EricksonLopez.MultiTenancy

Common compiler, analyzer, and runtime issues in EricksonLopez.MultiTenancy (2.0.0).

EricksonLopez.MultiTenancy.Analyzers catches multi-tenancy security flaws at build time, including DapperWithoutTenantAnalyzer (ELMT001) and SuperuserConnectionStringAnalyzer (flagging privileged database roles that would bypass PostgreSQL RLS).

  • InMemoryTenantStore.AddOrUpdate(...): Use store.AddOrUpdate(tenantInfo) or store.TryAdd(tenantInfo); there is no .Add(...) method.
  • Namespaces: TenantId and AspNetCoreMultiTenancyExtensions live in EricksonLopez.MultiTenancy (not .Abstractions or .AspNetCore), while TenantResolutionMiddlewareOptions lives in EricksonLopez.MultiTenancy.AspNetCore.Options.
  • SQL Server (BC-003): SetTenantSessionContextAsync requires DbTransaction as its second parameter so session context stays bound to an explicit transaction.
  • EF Core package: EricksonLopez.MultiTenancy.EntityFrameworkCore does not exist in v1.0.0 or v2.0.0 (removed in BC-106).