Language

DbContextOptions<TContext>.WithoutExtension<TExtension> Method

Definition

Removes the given extension from the underlying options and creates a new DbContextOptions with the extension removed.

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

Type Parameters

TExtension

The type of extension to be removed.

Returns

The new options instance with the extension removed.

Applies to