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.

Syntax

Declaration

public interface IDbContextOptionsPublic Interface IDbContextOptions

Properties summary

Gets the extensions that store the configured options.

Methods summary

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

Properties

  • Extensions
    Extensions

    Gets the extensions that store the configured options.

    IEnumerable<IDbContextOptionsExtension> Extensions { get; }ReadOnly Property Extensions As IEnumerable(Of IDbContextOptionsExtension)

    Property Value

Methods

  • FindExtension<TExtension>()
    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, IDbContextOptionsExtensionFunction FindExtension(Of TExtension As {Class, IDbContextOptionsExtension}) As TExtension

    Returns

    • TExtension
      TExtension

      The extension, or null if none was found.

Details

Assembly

Microsoft.EntityFrameworkCore.dll