Aracılığıyla paylaş


RelationalDatabaseDependencies Oluşturucu

Tanım

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ştirme sırasında uygulama hatalarına neden olabileceğini bilmeniz gerekir.

public RelationalDatabaseDependencies (Microsoft.EntityFrameworkCore.Update.ICommandBatchPreparer batchPreparer, Microsoft.EntityFrameworkCore.Update.IBatchExecutor batchExecutor, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public RelationalDatabaseDependencies (Microsoft.EntityFrameworkCore.Update.ICommandBatchPreparer batchPreparer, Microsoft.EntityFrameworkCore.Update.IBatchExecutor batchExecutor, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection);
new Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseDependencies : Microsoft.EntityFrameworkCore.Update.ICommandBatchPreparer * Microsoft.EntityFrameworkCore.Update.IBatchExecutor * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseDependencies
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseDependencies : Microsoft.EntityFrameworkCore.Update.ICommandBatchPreparer * Microsoft.EntityFrameworkCore.Update.IBatchExecutor * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseDependencies
Public Sub New (batchPreparer As ICommandBatchPreparer, batchExecutor As IBatchExecutor, connection As IRelationalConnection)

Parametreler

batchPreparer
ICommandBatchPreparer

ICommandBatchPreparer kullanılacak.

batchExecutor
IBatchExecutor

IBatchExecutor kullanılacak.

connection
IRelationalConnection

IRelationalConnection kullanılacak.

Öznitelikler

Açıklamalar

Yeni bağımlılıklar eklendikçe değişebileceği için bu oluşturucuyu doğrudan sağlayıcıdan veya uygulama kodundan çağırmayın. Bunun yerine, bağımlılık ekleme kapsayıcısı tarafından bir örneğin otomatik olarak oluşturulması ve eklenmesi için oluşturucunuzda bu türü kullanın. Bazı bağımlı hizmetlerin değiştirildiği bir örnek oluşturmak için önce bağımlılık ekleme kapsayıcısından nesnesini çözümleyin, ardından C# 'with' işlecini kullanarak seçili hizmetleri değiştirin. Bu işlemin herhangi bir noktasında oluşturucuyu çağırmayın.

Şunlara uygulanır