CommandEventData Oluşturucular

Tanım

Aşırı Yüklemeler

CommandEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbCommand, DbCommandMethod, Guid, Guid, Boolean, Boolean, DateTimeOffset)

Olay yükünü oluşturur.

CommandEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, Boolean, Boolean, DateTimeOffset)
Geçersiz.

Olay yükünü oluşturur.

CommandEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, Boolean, Boolean, DateTimeOffset, CommandSource)

Olay yükünü oluşturur.

CommandEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbCommand, DbCommandMethod, Guid, Guid, Boolean, Boolean, DateTimeOffset)

Olay yükünü oluşturur.

public CommandEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod executeMethod, Guid commandId, Guid connectionId, bool async, bool logParameterValues, DateTimeOffset startTime);
new Microsoft.EntityFrameworkCore.Diagnostics.CommandEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * bool * bool * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.CommandEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), command As DbCommand, executeMethod As DbCommandMethod, commandId As Guid, connectionId As Guid, async As Boolean, logParameterValues As Boolean, startTime As DateTimeOffset)

Parametreler

eventDefinition
EventDefinitionBase

Olay tanımı.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Bu olay için günlük iletisi oluşturan bir temsilci.

command
DbCommand

DbCommand.

executeMethod
DbCommandMethod

DbCommand yöntemi.

commandId
Guid

Kullanılan örneği tanımlayan bağıntı DbCommand kimliği.

connectionId
Guid

Kullanılan örneği tanımlayan bağıntı DbConnection kimliği.

async
Boolean

Komutun zaman uyumsuz olarak yürütülip yürütülmediğini gösterir.

logParameterValues
Boolean

Uygulamanın parametre değerlerinin günlüğe kaydedilmesine izin verip vermediğini gösterir.

startTime
DateTimeOffset

Bu olayın başlangıç saati.

Şunlara uygulanır

CommandEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, Boolean, Boolean, DateTimeOffset)

Dikkat

Use the overload with CommandSource

Olay yükünü oluşturur.

public CommandEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod executeMethod, Guid commandId, Guid connectionId, bool async, bool logParameterValues, DateTimeOffset startTime);
[System.Obsolete("Use the overload with CommandSource")]
public CommandEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext? context, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod executeMethod, Guid commandId, Guid connectionId, bool async, bool logParameterValues, DateTimeOffset startTime);
new Microsoft.EntityFrameworkCore.Diagnostics.CommandEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * bool * bool * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.CommandEventData
[<System.Obsolete("Use the overload with CommandSource")>]
new Microsoft.EntityFrameworkCore.Diagnostics.CommandEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * bool * bool * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.CommandEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), connection As DbConnection, command As DbCommand, context As DbContext, executeMethod As DbCommandMethod, commandId As Guid, connectionId As Guid, async As Boolean, logParameterValues As Boolean, startTime As DateTimeOffset)

Parametreler

eventDefinition
EventDefinitionBase

Olay tanımı.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Bu olay için günlük iletisi oluşturan bir temsilci.

connection
DbConnection

Kullanılmakta DbConnection olan.

command
DbCommand

DbCommand.

context
DbContext

Şu DbContext anda kullanılmakta olan, bilinmiyorsa null olarak.

executeMethod
DbCommandMethod

DbCommand yöntemi.

commandId
Guid

Kullanılan örneği tanımlayan bağıntı DbCommand kimliği.

connectionId
Guid

Kullanılan örneği tanımlayan bağıntı DbConnection kimliği.

async
Boolean

Komutun zaman uyumsuz olarak yürütülip yürütülmediğini gösterir.

logParameterValues
Boolean

Uygulamanın parametre değerlerinin günlüğe kaydedilmesine izin verip vermediğini gösterir.

startTime
DateTimeOffset

Bu olayın başlangıç saati.

Öznitelikler

Şunlara uygulanır

CommandEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, Boolean, Boolean, DateTimeOffset, CommandSource)

Olay yükünü oluşturur.

public CommandEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext? context, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod executeMethod, Guid commandId, Guid connectionId, bool async, bool logParameterValues, DateTimeOffset startTime, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
new Microsoft.EntityFrameworkCore.Diagnostics.CommandEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * bool * bool * DateTimeOffset * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> Microsoft.EntityFrameworkCore.Diagnostics.CommandEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), connection As DbConnection, command As DbCommand, context As DbContext, executeMethod As DbCommandMethod, commandId As Guid, connectionId As Guid, async As Boolean, logParameterValues As Boolean, startTime As DateTimeOffset, commandSource As CommandSource)

Parametreler

eventDefinition
EventDefinitionBase

Olay tanımı.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Bu olay için günlük iletisi oluşturan bir temsilci.

connection
DbConnection

Kullanılmakta DbConnection olan.

command
DbCommand

DbCommand.

context
DbContext

Şu DbContext anda kullanılmakta olan, bilinmiyorsa null olarak.

executeMethod
DbCommandMethod

DbCommand yöntemi.

commandId
Guid

Kullanılan örneği tanımlayan bağıntı DbCommand kimliği.

connectionId
Guid

Kullanılan örneği tanımlayan bağıntı DbConnection kimliği.

async
Boolean

Komutun zaman uyumsuz olarak yürütülip yürütülmediğini gösterir.

logParameterValues
Boolean

Uygulamanın parametre değerlerinin günlüğe kaydedilmesine izin verip vermediğini gösterir.

startTime
DateTimeOffset

Bu olayın başlangıç saati.

commandSource
CommandSource

Komutun kaynağı.

Şunlara uygulanır