IDbContextOptions IDbContextOptions Interface


The options to be used by a DbContext. You normally override OnConfiguring(DbContextOptionsBuilder) or use a DbContextOptionsBuilder to create instances of classes that implement this interface, they are not designed to be directly created in your application code.

public interface IDbContextOptions
Public Interface IDbContextOptions


Extensions Extensions

Gets the extensions that store the configured options.

IEnumerable<IDbContextOptionsExtension> Extensions { get; }
ReadOnly Property Extensions As IEnumerable(Of IDbContextOptionsExtension)
System.Collections.Generic.IEnumerable<IDbContextOptionsExtension> System.Collections.Generic.IEnumerable(Of IDbContextOptionsExtension)


FindExtension() FindExtension(Of TExtension)()

Gets the extension of the specified type. Returns null if no extension of the specified type is configured.

TExtension FindExtension<TExtension>()where TExtension : class, IDbContextOptionsExtension
Function FindExtension(Of TExtension As {Class, IDbContextOptionsExtension}) As TExtension
Type Parameters

The type of the extension to get.

TExtension TExtension

The extension, or null if none was found.