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 相互關聯識別碼。
- 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 相互關聯識別碼。
- recordsAffected
- Int32
取得因執行 SQL 陳述式所變更、插入或刪除的資料列數目。
- readCount
- Int32
取得這個讀取器所執行的讀取作業數目。
- startTime
- DateTimeOffset
建立資料讀取器的時間。
- duration
- TimeSpan
從建立資料讀取器到處置資料讀取器為止的持續時間。 這會對應至讀取查詢結果的時間。