Table of Contents

Interface IDbContextFactory<TContext>

Namespace
Innova.Data
Assembly
Innova.Data.dll

Represents a factory for creating instances of the database context.

public interface IDbContextFactory<TContext> where TContext : DbContext

Type Parameters

TContext

The type of the database context.

Methods

CreateDbContext()

Creates a new instance of the database context.

CreateDbContextAsync(CancellationToken)

Asynchronously creates a new instance of the database context.

CreateDbContextWithNoSensitiveDataLogging()

Creates a new instance of the database context with no sensitive data logging.