PooledDbContextFactory<TContext> Konstruktoren
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
| Name | Beschreibung |
|---|---|
| PooledDbContextFactory<TContext>(IDbContextPool<TContext>) |
Dies ist eine interne API, die die Entity Framework Core-Infrastruktur unterstützt und nicht den gleichen Kompatibilitätsstandards wie öffentliche APIs unterliegt. Sie kann ohne Vorherige Ankündigung geändert oder entfernt werden. Sie sollten sie nur direkt in Ihrem Code mit äußerster Vorsicht verwenden und wissen, dass dies zu Anwendungsfehlern bei der Aktualisierung auf eine neue Entity Framework Core-Version führen kann. |
| PooledDbContextFactory<TContext>(DbContextOptions<TContext>, Int32) |
Initialisiert eine neue Instanz der PooledDbContextFactory<TContext>-Klasse. |
PooledDbContextFactory<TContext>(IDbContextPool<TContext>)
- Quelle:
- PooledDbContextFactory.cs
- Quelle:
- PooledDbContextFactory.cs
- Quelle:
- PooledDbContextFactory.cs
- Quelle:
- PooledDbContextFactory.cs
- Quelle:
- PooledDbContextFactory.cs
- Quelle:
- PooledDbContextFactory.cs
Dies ist eine interne API, die die Entity Framework Core-Infrastruktur unterstützt und nicht den gleichen Kompatibilitätsstandards wie öffentliche APIs unterliegt. Sie kann ohne Vorherige Ankündigung geändert oder entfernt werden. Sie sollten sie nur direkt in Ihrem Code mit äußerster Vorsicht verwenden und wissen, dass dies zu Anwendungsfehlern bei der Aktualisierung auf eine neue Entity Framework Core-Version führen kann.
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public PooledDbContextFactory(Microsoft.EntityFrameworkCore.Internal.IDbContextPool<TContext> pool);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Infrastructure.PooledDbContextFactory<'Context (requires 'Context :> Microsoft.EntityFrameworkCore.DbContext)> : Microsoft.EntityFrameworkCore.Internal.IDbContextPool<'Context (requires 'Context :> Microsoft.EntityFrameworkCore.DbContext)> -> Microsoft.EntityFrameworkCore.Infrastructure.PooledDbContextFactory<'Context (requires 'Context :> Microsoft.EntityFrameworkCore.DbContext)>
Public Sub New (pool As IDbContextPool(Of TContext))
Parameter
- pool
- Microsoft.EntityFrameworkCore.Internal.IDbContextPool<TContext>
- Attribute
Gilt für:
PooledDbContextFactory<TContext>(DbContextOptions<TContext>, Int32)
- Quelle:
- PooledDbContextFactory.cs
- Quelle:
- PooledDbContextFactory.cs
- Quelle:
- PooledDbContextFactory.cs
- Quelle:
- PooledDbContextFactory.cs
- Quelle:
- PooledDbContextFactory.cs
- Quelle:
- PooledDbContextFactory.cs
Initialisiert eine neue Instanz der PooledDbContextFactory<TContext>-Klasse.
public PooledDbContextFactory(Microsoft.EntityFrameworkCore.DbContextOptions<TContext> options, int poolSize = 1024);
new Microsoft.EntityFrameworkCore.Infrastructure.PooledDbContextFactory<'Context (requires 'Context :> Microsoft.EntityFrameworkCore.DbContext)> : Microsoft.EntityFrameworkCore.DbContextOptions<'Context (requires 'Context :> Microsoft.EntityFrameworkCore.DbContext)> * int -> Microsoft.EntityFrameworkCore.Infrastructure.PooledDbContextFactory<'Context (requires 'Context :> Microsoft.EntityFrameworkCore.DbContext)>
Public Sub New (options As DbContextOptions(Of TContext), Optional poolSize As Integer = 1024)
Parameter
- options
- DbContextOptions<TContext>
Die Optionen, die für Kontexte verwendet werden sollen, die von dieser Factory erstellt werden.
- poolSize
- Int32
Legt die maximale Anzahl von Instanzen fest, die vom Pool aufbewahrt werden. Der Standardwert ist 1024.