TenantDbAccessScopeMiddlewareApplicationBuilderExtensions

Extension methods for TenantDbAccessScopeMiddleware configuration.

Namespace:
KpokPatagon.AspNet.Multitenancy
Type:
Class
Public:
Yes
Protected:
No
Sealed:
Yes
Abstract:
Yes

Methods

UseTenantDbAccessScope

Adds a middeware that sets the connection string of the specified database API names to the one of the current tenant.

Signature:
public IApplicationBuilder UseTenantDbAccessScope(builder, options)
Parameters
Name Type Summary
builder IApplicationBuilder Application builder.
options TenantDbAccessScopeOptions Options to pass to the middleware.

In this document