Finbuckle.MultiTenant is an open-source multitenancy middleware library for .NET. It enables tenant resolution, per-tenant app behavior, and per-tenant data isolation.
I updated my API from dotnet 6 to dotnet 8, I updated also the Finbuckle references to the latest version.
I have no error when building or using the API, but when I want to create a new migration I have this error :
Unable to create a 'DbContext' of type 'ApplicationDbContext'. The exception 'Unable to resolve service for type 'Finbuckle.MultiTenant.ITenantInfo' while attempting to activate 'WebApi.Infrastructure.Persistence.Context.ApplicationDbContext'.' was thrown while attempting to create an instance.
Hello,
I updated my API from dotnet 6 to dotnet 8, I updated also the Finbuckle references to the latest version. I have no error when building or using the API, but when I want to create a new migration I have this error :
Unable to create a 'DbContext' of type 'ApplicationDbContext'. The exception 'Unable to resolve service for type 'Finbuckle.MultiTenant.ITenantInfo' while attempting to activate 'WebApi.Infrastructure.Persistence.Context.ApplicationDbContext'.' was thrown while attempting to create an instance.
Before updating to dotnet 8 everything was fine.
I searched on the net but can't find any help.