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.

C#
public DbContextOptions ();

Applies to

Entity Framework Core 9.0 ja muud versioonid
Toode Versioonid
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

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.

C#
public DbContextOptions (System.Collections.Generic.IReadOnlyDictionary<Type,Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptionsExtension> extensions);

Parameters

extensions
IReadOnlyDictionary<Type,IDbContextOptionsExtension>

The extensions that store the configured options.

Applies to

Entity Framework Core 9.0 ja muud versioonid
Toode Versioonid
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0