Share via


DbContextOptions<TContext> Constructors

Definition

Overloads

DbContextOptions<TContext>()

Initializes a new instance of the DbContextOptions<TContext> class. You normally override OnConfiguring(DbContextOptionsBuilder) or use a DbContextOptionsBuilder<TContext> to create instances of this class and it is not designed to be directly constructed in your application code.

DbContextOptions<TContext>(IReadOnlyDictionary<Type,IDbContextOptionsExtension>)

Initializes a new instance of the DbContextOptions<TContext> class. You normally override OnConfiguring(DbContextOptionsBuilder) or use a DbContextOptionsBuilder<TContext> to create instances of this class and it is not designed to be directly constructed in your application code.

DbContextOptions<TContext>()

Source:
DbContextOptions%60.cs
Source:
DbContextOptions%60.cs
Source:
DbContextOptions%60.cs
Source:
DbContextOptions%60.cs
Source:
DbContextOptions%60.cs
Source:
DbContextOptions%60.cs
Source:
DbContextOptions%60.cs
Source:
DbContextOptions%60.cs
Source:
DbContextOptions%60.cs

Initializes a new instance of the DbContextOptions<TContext> class. You normally override OnConfiguring(DbContextOptionsBuilder) or use a DbContextOptionsBuilder<TContext> to create instances of this class and it is not designed to be directly constructed in your application code.

public DbContextOptions ();
Public Sub New ()

Applies to

DbContextOptions<TContext>(IReadOnlyDictionary<Type,IDbContextOptionsExtension>)

Source:
DbContextOptions%60.cs
Source:
DbContextOptions%60.cs
Source:
DbContextOptions%60.cs
Source:
DbContextOptions%60.cs
Source:
DbContextOptions%60.cs
Source:
DbContextOptions%60.cs
Source:
DbContextOptions%60.cs
Source:
DbContextOptions%60.cs
Source:
DbContextOptions%60.cs

Initializes a new instance of the DbContextOptions<TContext> class. You normally override OnConfiguring(DbContextOptionsBuilder) or use a DbContextOptionsBuilder<TContext> to create instances of this class and it is not designed to be directly constructed in your application code.

public DbContextOptions (System.Collections.Generic.IReadOnlyDictionary<Type,Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptionsExtension> extensions);
new Microsoft.EntityFrameworkCore.DbContextOptions<'Context (requires 'Context :> Microsoft.EntityFrameworkCore.DbContext)> : System.Collections.Generic.IReadOnlyDictionary<Type, Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptionsExtension> -> Microsoft.EntityFrameworkCore.DbContextOptions<'Context (requires 'Context :> Microsoft.EntityFrameworkCore.DbContext)>
Public Sub New (extensions As IReadOnlyDictionary(Of Type, IDbContextOptionsExtension))

Parameters

extensions
IReadOnlyDictionary<Type,IDbContextOptionsExtension>

The extensions that store the configured options.

Applies to