RelationalOptionsExtension.Extract(IDbContextOptions) Method

Definition

Finds an existing RelationalOptionsExtension registered on the given options or throws if none has been registered. This is typically used to find some relational configuration when it is known that a relational provider is being used.

public static Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension Extract (Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions options);
static member Extract : Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions -> Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension
Public Shared Function Extract (options As IDbContextOptions) As RelationalOptionsExtension

Parameters

options
IDbContextOptions

The context options to look in.

Returns

The extension.

Applies to