Bagikan melalui


ConnectionEventData Konstruktor

Definisi

Overload

ConnectionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbConnection, Guid, Boolean, DateTimeOffset)

Membuat payload peristiwa.

ConnectionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbConnection, DbContext, Guid, Boolean, DateTimeOffset)

Membuat payload peristiwa.

ConnectionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbConnection, Guid, Boolean, DateTimeOffset)

Membuat payload peristiwa.

public ConnectionEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbConnection connection, Guid connectionId, bool async, DateTimeOffset startTime);
new Microsoft.EntityFrameworkCore.Diagnostics.ConnectionEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbConnection * Guid * bool * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.ConnectionEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), connection As DbConnection, connectionId As Guid, async As Boolean, startTime As DateTimeOffset)

Parameter

eventDefinition
EventDefinitionBase

Definisi peristiwa.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Delegasi yang menghasilkan pesan log untuk kejadian ini.

connectionId
Guid

ID korelasi yang mengidentifikasi instans yang DbConnection digunakan.

async
Boolean

Menunjukkan apakah operasi terjadi secara asinkron atau tidak.

startTime
DateTimeOffset

Waktu mulai kejadian ini.

Berlaku untuk

ConnectionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbConnection, DbContext, Guid, Boolean, DateTimeOffset)

Membuat payload peristiwa.

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

Parameter

eventDefinition
EventDefinitionBase

Definisi peristiwa.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Delegasi yang menghasilkan pesan log untuk kejadian ini.

context
DbContext

Yang DbContext saat ini sedang digunakan, untuk null jika tidak diketahui.

connectionId
Guid

ID korelasi yang mengidentifikasi instans yang DbConnection digunakan.

async
Boolean

Menunjukkan apakah operasi terjadi secara asinkron atau tidak.

startTime
DateTimeOffset

Waktu mulai kejadian ini.

Berlaku untuk