DataReaderDisposingEventData Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DataReaderDisposingEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbCommand, DbDataReader, Guid, Guid, Int32, Int32, DateTimeOffset, TimeSpan)
Constructs a DiagnosticSource event payload for 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)
Parameters
- eventDefinition
- EventDefinitionBase
The event definition.
- messageGenerator
- Func<EventDefinitionBase,EventData,String>
A delegate that generates a log message for this event.
- dataReader
- DbDataReader
The DbDataReader that is being disposed.
- connectionId
- Guid
A correlation ID that identifies the DbConnection instance being used.
- recordsAffected
- Int32
Gets the number of rows changed, inserted, or deleted by execution of the SQL statement.
- readCount
- Int32
Gets the number of read operations performed by this reader.
- startTime
- DateTimeOffset
The start time of this event.
- duration
- TimeSpan
The duration this event.
Applies to
DataReaderDisposingEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbCommand, DbDataReader, DbContext, Guid, Guid, Int32, Int32, DateTimeOffset, TimeSpan)
Constructs a DiagnosticSource event payload for 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)
Parameters
- eventDefinition
- EventDefinitionBase
The event definition.
- messageGenerator
- Func<EventDefinitionBase,EventData,String>
A delegate that generates a log message for this event.
- dataReader
- DbDataReader
The DbDataReader that is being disposed.
- connectionId
- Guid
A correlation ID that identifies the DbConnection instance being used.
- recordsAffected
- Int32
Gets the number of rows changed, inserted, or deleted by execution of the SQL statement.
- readCount
- Int32
Gets the number of read operations performed by this reader.
- startTime
- DateTimeOffset
The time when the data reader was created.
- duration
- TimeSpan
The duration from the time the data reader is created until it is disposed. This corresponds to the time reading for reading results of a query.
Applies to
Entity Framework