Table of Contents

Class LinqToDBOptionsExtension

Namespace
LinqToDB.EntityFrameworkCore.Internal
Assembly
linq2db.EntityFrameworkCore.dll

Model containing LinqToDB related context options.

public class LinqToDBOptionsExtension : IDbContextOptionsExtension
Inheritance
LinqToDBOptionsExtension
Implements

Constructors

LinqToDBOptionsExtension()

.ctor

public LinqToDBOptionsExtension()

LinqToDBOptionsExtension(LinqToDBOptionsExtension)

.ctor

protected LinqToDBOptionsExtension(LinqToDBOptionsExtension copyFrom)

Parameters

copyFrom LinqToDBOptionsExtension

Properties

Info

Context options extension info object.

public DbContextOptionsExtensionInfo Info { get; }

Property Value

DbContextOptionsExtensionInfo

Options

List of registered LinqToDB interceptors

public virtual DataOptions Options { get; set; }

Property Value

DataOptions

Methods

ApplyServices(IServiceCollection)

public void ApplyServices(IServiceCollection services)

Parameters

services IServiceCollection

The collection to add services to

Validate(IDbContextOptions)

Gives the extension a chance to validate that all options in the extension are valid. Most extensions do not have invalid combinations and so this will be a no-op. If options are invalid, then an exception should be thrown.

public void Validate(IDbContextOptions options)

Parameters

options IDbContextOptions