IRelationalCommandDiagnosticsLogger.CommandCreated Yöntem

Tanım

Olay için CommandCreated günlükler.

public System.Data.Common.DbCommand CommandCreated (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod commandMethod, Microsoft.EntityFrameworkCore.DbContext? context, Guid commandId, Guid connectionId, DateTimeOffset startTime, TimeSpan duration, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
abstract member CommandCreated : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * DateTimeOffset * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> System.Data.Common.DbCommand
Public Function CommandCreated (connection As IRelationalConnection, command As DbCommand, commandMethod As DbCommandMethod, context As DbContext, commandId As Guid, connectionId As Guid, startTime As DateTimeOffset, duration As TimeSpan, commandSource As CommandSource) As DbCommand

Parametreler

connection
IRelationalConnection

Bağlantı.

command
DbCommand

Veritabanı komut nesnesi.

commandMethod
DbCommandMethod

Bu komutta çağrılacak yöntemin türü.

context
DbContext

Bilinen DbContext değilse null olarak kullanılmakta olan.

commandId
Guid

Verilen DbCommandile ilişkili bağıntı kimliği.

connectionId
Guid

Kullanılmakta olan ile ilişkili bağıntı DbConnection kimliği.

startTime
DateTimeOffset

Yürütmenin başladığı zaman.

duration
TimeSpan

Komut oluşturma süresi.

commandSource
CommandSource

Komutun kaynağı.

Döndürülenler

Kesişen sonuç.

Şunlara uygulanır