Langue

IDbContextOptionsBuilderInfrastructure.RemoveExtension<TExtension> Method

Definition

Removes the extension of the given type from the options. If no extension of the given type exists, this is a no-op.

This method is intended for use by extension methods to configure the context. It is not intended to be used in application code.

public void RemoveExtension<TExtension>() where TExtension : class, Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptionsExtension;
abstract member RemoveExtension : unit -> unit (requires 'Extension : null and 'Extension :> Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptionsExtension)
Public Sub RemoveExtension(Of TExtension As {Class, IDbContextOptionsExtension}) ()

Type Parameters

TExtension

The type of extension to be removed.

Remarks

See Implementation of database providers and extensions for more information and examples.

Applies to