IDbContextOptionsConfiguration<TContext> Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework