ConnectionEventData 构造函数

定义

重载

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

构造事件有效负载。

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

构造事件有效负载。

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

构造事件有效负载。

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)

参数

eventDefinition
EventDefinitionBase

事件定义。

messageGenerator
Func<EventDefinitionBase,EventData,String>

生成此事件的日志消息的委托。

connection
DbConnection

DbConnection

connectionId
Guid

标识正在使用的实例的相关 DbConnection ID。

async
Boolean

指示操作是否以异步方式发生。

startTime
DateTimeOffset

此事件的开始时间。

适用于

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

构造事件有效负载。

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)

参数

eventDefinition
EventDefinitionBase

事件定义。

messageGenerator
Func<EventDefinitionBase,EventData,String>

生成此事件的日志消息的委托。

connection
DbConnection

DbConnection

context
DbContext

当前 DbContext 正在使用的 ,如果未知,则为 null。

connectionId
Guid

标识正在使用的实例的相关 DbConnection ID。

async
Boolean

指示操作是否以异步方式发生。

startTime
DateTimeOffset

此事件的开始时间。

适用于