Skip to content

v7.0.0

Compare
Choose a tag to compare
@AndrewTriesToCode AndrewTriesToCode released this 21 Apr 20:28
· 56 commits to main since this release

7.0.0 (2024-04-21)

⚠ BREAKING CHANGES

  • (I)MultiTenantContext and (I)TenantInfo are no longer available via dependency injection. Use
    IMultiTenantContextAccessor instead. MultiTenantDbContex and MultiTenantIdentityDbContext will require a new
    constructor that injects IMultiTenantContextAccessor or IMultiTenantContext.
  • Many namespaces have been updated for consistency. Most code will only need to use the Finbuckle.MultiTenant or
    Finbuckle.MultiTenant.Abstractions namespace.
  • Connection string is removed from ITenantInfo and the default TenantInfo implementation.
  • Added support for OptionsBuilder API and more efficient per-tenant options overall.
  • WithPerTenantOptions replaced by ConfigurePerTenant service collection extensions methods.
  • Unique indexes and the UserLogin primary key in the standard Identity models adjusted to include tenant id.
  • IMultiTenantContext nullability reworked and should never be null.

Features

  • better options support (#681) (1859017)
  • change default MultiTenantIdentityDbContext default index and key behavior (81f5612)
  • MultiTenantDbContext and MultiTenantIdentityDbContext support for IMultiTenantContextAccessor DI (9015085)
  • namespace cleaned up (b354838)
  • refactor DI and improve nullability (eca24bf)
  • remove ConnectionString from ITenantInfo and TenantInfo (f4e20db)

Bug Fixes

  • AdjustKey correctly adding TenantId to primary and foreign keys (613b4a8)