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(...): Usestore.AddOrUpdate(tenantInfo)orstore.TryAdd(tenantInfo); there is no.Add(...)method.- Namespaces:
TenantIdandAspNetCoreMultiTenancyExtensionslive inEricksonLopez.MultiTenancy(not.Abstractionsor.AspNetCore), whileTenantResolutionMiddlewareOptionslives inEricksonLopez.MultiTenancy.AspNetCore.Options. - SQL Server (
BC-003):SetTenantSessionContextAsyncrequiresDbTransactionas its second parameter so session context stays bound to an explicit transaction. - EF Core package:
EricksonLopez.MultiTenancy.EntityFrameworkCoredoes not exist inv1.0.0orv2.0.0(removed inBC-106).