Aracılığıyla paylaş


PooledDbContextFactory<TContext> Oluşturucular

Tanım

Aşırı Yüklemeler

PooledDbContextFactory<TContext>(IDbContextPool<TContext>)

Bu, Entity Framework Core altyapısını destekleyen ve genel API'ler ile aynı uyumluluk standartlarına tabi olmayan bir iç API'dir. Herhangi bir sürümde bildirimde bulunmaksızın değiştirilebilir veya kaldırılabilir. Bunu yalnızca kodunuzda son derece dikkatli bir şekilde kullanmanız ve bunu yapmanın yeni bir Entity Framework Core sürümüne güncelleştirirken uygulama hatalarına neden olabileceğini bilmeniz gerekir.

PooledDbContextFactory<TContext>(DbContextOptions<TContext>, Int32)

PooledDbContextFactory<TContext> sınıfının yeni bir örneğini başlatır.

PooledDbContextFactory<TContext>(IDbContextPool<TContext>)

Kaynak:
PooledDbContextFactory.cs
Kaynak:
PooledDbContextFactory.cs
Kaynak:
PooledDbContextFactory.cs
Kaynak:
PooledDbContextFactory.cs

Bu, Entity Framework Core altyapısını destekleyen ve genel API'ler ile aynı uyumluluk standartlarına tabi olmayan bir iç API'dir. Herhangi bir sürümde bildirimde bulunmaksızın değiştirilebilir veya kaldırılabilir. Bunu yalnızca kodunuzda son derece dikkatli bir şekilde kullanmanız ve bunu yapmanın yeni bir Entity Framework Core sürümüne güncelleştirirken uygulama hatalarına neden olabileceğini bilmeniz gerekir.

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

Parametreler

pool
Microsoft.EntityFrameworkCore.Internal.IDbContextPool<TContext>
Öznitelikler

Şunlara uygulanır

PooledDbContextFactory<TContext>(DbContextOptions<TContext>, Int32)

Kaynak:
PooledDbContextFactory.cs
Kaynak:
PooledDbContextFactory.cs
Kaynak:
PooledDbContextFactory.cs
Kaynak:
PooledDbContextFactory.cs

PooledDbContextFactory<TContext> sınıfının yeni bir örneğini başlatır.

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)

Parametreler

options
DbContextOptions<TContext>

Bu fabrika tarafından üretilen bağlamlar için kullanılacak seçenekler.

poolSize
Int32

Havuz tarafından tutulan en fazla örnek sayısını ayarlar. Varsayılan değer 1024'tir.

Şunlara uygulanır