Langue

DbContextOptionsBuilder.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.

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

Type Parameters

TExtension

The type of extension to be removed.

Implements

Remarks

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

Applies to