DataReaderDisposingEventData 构造函数

定义

重载

DataReaderDisposingEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbCommand, DbDataReader, Guid, Guid, Int32, Int32, DateTimeOffset, TimeSpan)

DiagnosticSourceDataReaderDisposing构造事件有效负载。

DataReaderDisposingEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbCommand, DbDataReader, DbContext, Guid, Guid, Int32, Int32, DateTimeOffset, TimeSpan)

DiagnosticSourceDataReaderDisposing构造事件有效负载。

DataReaderDisposingEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbCommand, DbDataReader, Guid, Guid, Int32, Int32, DateTimeOffset, TimeSpan)

Source:
DataReaderDisposingEventData.cs
Source:
DataReaderDisposingEventData.cs

DiagnosticSourceDataReaderDisposing构造事件有效负载。

public DataReaderDisposingEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbCommand command, System.Data.Common.DbDataReader dataReader, Guid commandId, Guid connectionId, int recordsAffected, int readCount, DateTimeOffset startTime, TimeSpan duration);
new Microsoft.EntityFrameworkCore.Diagnostics.DataReaderDisposingEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbCommand * System.Data.Common.DbDataReader * Guid * Guid * int * int * DateTimeOffset * TimeSpan -> Microsoft.EntityFrameworkCore.Diagnostics.DataReaderDisposingEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), command As DbCommand, dataReader As DbDataReader, commandId As Guid, connectionId As Guid, recordsAffected As Integer, readCount As Integer, startTime As DateTimeOffset, duration As TimeSpan)

参数

eventDefinition
EventDefinitionBase

事件定义。

messageGenerator
Func<EventDefinitionBase,EventData,String>

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

command
DbCommand

DbCommand创建读取器的 。

dataReader
DbDataReader

DbDataReader正在释放的 。

commandId
Guid

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

connectionId
Guid

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

recordsAffected
Int32

通过执行 SQL 语句获取更改、插入或删除的行数。

readCount
Int32

获取此读取器执行的读取操作数。

startTime
DateTimeOffset

此事件的开始时间。

duration
TimeSpan

此事件的持续时间。

适用于

DataReaderDisposingEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbCommand, DbDataReader, DbContext, Guid, Guid, Int32, Int32, DateTimeOffset, TimeSpan)

Source:
DataReaderDisposingEventData.cs
Source:
DataReaderDisposingEventData.cs
Source:
DataReaderDisposingEventData.cs
Source:
DataReaderDisposingEventData.cs
Source:
DataReaderDisposingEventData.cs
Source:
DataReaderDisposingEventData.cs
Source:
DataReaderDisposingEventData.cs

DiagnosticSourceDataReaderDisposing构造事件有效负载。

public DataReaderDisposingEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbCommand command, System.Data.Common.DbDataReader dataReader, Microsoft.EntityFrameworkCore.DbContext context, Guid commandId, Guid connectionId, int recordsAffected, int readCount, DateTimeOffset startTime, TimeSpan duration);
public DataReaderDisposingEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbCommand command, System.Data.Common.DbDataReader dataReader, Microsoft.EntityFrameworkCore.DbContext? context, Guid commandId, Guid connectionId, int recordsAffected, int readCount, DateTimeOffset startTime, TimeSpan duration);
new Microsoft.EntityFrameworkCore.Diagnostics.DataReaderDisposingEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbCommand * System.Data.Common.DbDataReader * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * int * int * DateTimeOffset * TimeSpan -> Microsoft.EntityFrameworkCore.Diagnostics.DataReaderDisposingEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), command As DbCommand, dataReader As DbDataReader, context As DbContext, commandId As Guid, connectionId As Guid, recordsAffected As Integer, readCount As Integer, startTime As DateTimeOffset, duration As TimeSpan)

参数

eventDefinition
EventDefinitionBase

事件定义。

messageGenerator
Func<EventDefinitionBase,EventData,String>

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

command
DbCommand

DbCommand创建读取器的 。

dataReader
DbDataReader

DbDataReader正在释放的 。

context
DbContext

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

commandId
Guid

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

connectionId
Guid

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

recordsAffected
Int32

通过执行 SQL 语句获取更改、插入或删除的行数。

readCount
Int32

获取此读取器执行的读取操作数。

startTime
DateTimeOffset

创建数据读取器的时间。

duration
TimeSpan

从创建数据读取器到释放数据的持续时间。 这对应于读取查询结果的时间读取。

适用于