Sprache

DbContextOptions<TContext> Konstruktoren

Definition

Überlädt

Name Beschreibung
DbContextOptions<TContext>()

Initialisiert eine neue Instanz der DbContextOptions<TContext>-Klasse. Normalerweise überschreiben OnConfiguring(DbContextOptionsBuilder) Oder verwenden Sie eine DbContextOptionsBuilder<TContext> zum Erstellen von Instanzen dieser Klasse, und sie ist nicht so konzipiert, dass sie direkt in Ihrem Anwendungscode erstellt werden kann.

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

Initialisiert eine neue Instanz der DbContextOptions<TContext>-Klasse. Normalerweise überschreiben OnConfiguring(DbContextOptionsBuilder) Oder verwenden Sie eine DbContextOptionsBuilder<TContext> zum Erstellen von Instanzen dieser Klasse, und sie ist nicht so konzipiert, dass sie direkt in Ihrem Anwendungscode erstellt werden kann.

DbContextOptions<TContext>()

Quelle:
DbContextOptions`.cs
Quelle:
DbContextOptions`.cs
Quelle:
DbContextOptions`.cs
Quelle:
DbContextOptions`.cs
Quelle:
DbContextOptions`.cs
Quelle:
DbContextOptions`.cs
Quelle:
DbContextOptions`.cs
Quelle:
DbContextOptions`.cs
Quelle:
DbContextOptions`.cs
Quelle:
DbContextOptions`.cs
Quelle:
DbContextOptions`.cs

Initialisiert eine neue Instanz der DbContextOptions<TContext>-Klasse. Normalerweise überschreiben OnConfiguring(DbContextOptionsBuilder) Oder verwenden Sie eine DbContextOptionsBuilder<TContext> zum Erstellen von Instanzen dieser Klasse, und sie ist nicht so konzipiert, dass sie direkt in Ihrem Anwendungscode erstellt werden kann.

public DbContextOptions();
Public Sub New ()

Gilt für:

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

Quelle:
DbContextOptions`.cs
Quelle:
DbContextOptions`.cs
Quelle:
DbContextOptions`.cs
Quelle:
DbContextOptions`.cs
Quelle:
DbContextOptions`.cs
Quelle:
DbContextOptions`.cs
Quelle:
DbContextOptions`.cs
Quelle:
DbContextOptions`.cs
Quelle:
DbContextOptions`.cs
Quelle:
DbContextOptions`.cs
Quelle:
DbContextOptions`.cs

Initialisiert eine neue Instanz der DbContextOptions<TContext>-Klasse. Normalerweise überschreiben OnConfiguring(DbContextOptionsBuilder) Oder verwenden Sie eine DbContextOptionsBuilder<TContext> zum Erstellen von Instanzen dieser Klasse, und sie ist nicht so konzipiert, dass sie direkt in Ihrem Anwendungscode erstellt werden kann.

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))

Parameter

extensions
IReadOnlyDictionary<Type,IDbContextOptionsExtension>

Die Erweiterungen, die die konfigurierten Optionen speichern.

Gilt für: