IDbContextOptionsBuilderInfrastructure.RemoveExtension<TExtension> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.