Skip to content

How to use DbContextFactory in Blazor Server when using database per tenant? #910

Open
@cryo75

Description

I moved from a single databases to the per-tenant database in a Blazor Server-side app. Currently I have:

services.AddDbContextFactory<AppContext>(options =>
{
    options.UseSqlServer(configuration.GetConnectionString("App"));
});

But now how am I going to change the above service registration to use the per-tenant connection string?

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions