Share via


IDbContextOptionsConfiguration<TContext> Interface

Definition

Configures the options to be used by a DbContext. You normally call ConfigureDbContext<TContext>(IServiceCollection, Action<DbContextOptionsBuilder>, ServiceLifetime) to register this class, it is not designed to be directly constructed in your application code.

public interface IDbContextOptionsConfiguration<TContext> where TContext : DbContext
type IDbContextOptionsConfiguration<'Context (requires 'Context :> DbContext)> = interface
Public Interface IDbContextOptionsConfiguration(Of TContext)

Type Parameters

TContext

The type of the context these options apply to.

Remarks

See Using DbContext with dependency injection for more information and examples.

Methods

Configure(IServiceProvider, DbContextOptionsBuilder)

Applies the specified configuration.

Applies to