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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Entity Framework