DataReaderDisposingEventData 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
DataReaderDisposingEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbCommand, DbDataReader, Guid, Guid, Int32, Int32, DateTimeOffset, TimeSpan)
DiagnosticSource为 DataReaderDisposing构造事件有效负载。
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>
生成此事件的日志消息的委托。
- dataReader
- DbDataReader
DbDataReader正在释放的 。
- 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)
DiagnosticSource为 DataReaderDisposing构造事件有效负载。
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>
生成此事件的日志消息的委托。
- dataReader
- DbDataReader
DbDataReader正在释放的 。
- connectionId
- Guid
标识正在使用的实例的相关 DbConnection ID。
- recordsAffected
- Int32
通过执行 SQL 语句获取更改、插入或删除的行数。
- readCount
- Int32
获取此读取器执行的读取操作数。
- startTime
- DateTimeOffset
创建数据读取器的时间。
- duration
- TimeSpan
从创建数据读取器到释放数据的持续时间。 这对应于读取查询结果的时间读取。