Finbuckle.MultiTenant is an open-source multitenancy middleware library for .NET. It enables tenant resolution, per-tenant app behavior, and per-tenant data isolation.
For the Separate Databases scenario, I have updated AppDbContext.cs and trying to generate migration scripts using the command
dotnet ef migrations add InitialCreate -c AppDbContext
I am getting the error
Unable to create a 'DbContext' of type 'AppDbContext'. The exception 'No database provider has been configured for this DbContext. A provider can be configured by overriding the 'DbContext.OnConfiguring' method or by using 'AddDbContext' on the application service provider. If 'AddDbContext' is used, then also ensure that your DbContext type accepts a DbContextOptions<TContext> object in its constructor and passes it to the base constructor for DbContext.' was thrown while attempting to create an instance. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728
I may be missing something here. It would be great for my team if someone can guide me on this.
Recently,
I was doing R&D on
Multi Tenancy
and I found the package finbuckleand felt it is useful for my team members.
I created this repo https://github.com/gitruhul/FinBuckleMultiTenantSamples for the demo purpose.
For the Separate Databases scenario, I have updated AppDbContext.cs and trying to generate migration scripts using the command
I am getting the error
I may be missing something here. It would be great for my team if someone can guide me on this.