DbContextOptions.GetExtension<TExtension> Metodo

Definizione

Ottiene l'estensione del tipo specificato. Genera se non viene configurata alcuna estensione del tipo specificato.

public virtual TExtension GetExtension<TExtension> () where TExtension : class, Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptionsExtension;
abstract member GetExtension : unit -> 'Extension (requires 'Extension : null and 'Extension :> Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptionsExtension)
override this.GetExtension : unit -> 'Extension (requires 'Extension : null and 'Extension :> Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptionsExtension)
Public Overridable Function GetExtension(Of TExtension As {Class, IDbContextOptionsExtension}) () As TExtension

Parametri di tipo

TExtension

Tipo dell'estensione da ottenere.

Restituisce

TExtension

Estensione.

Si applica a