RelationalLoggerExtensions.CommandReaderExecuting 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
CommandExecuting事件的記錄。
public static Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<System.Data.Common.DbDataReader> CommandReaderExecuting (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> diagnostics, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime);
static member CommandReaderExecuting : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<System.Data.Common.DbDataReader>
<Extension()>
Public Function CommandReaderExecuting (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Database.Command), connection As IRelationalConnection, command As DbCommand, context As DbContext, commandId As Guid, connectionId As Guid, startTime As DateTimeOffset) As InterceptionResult(Of DbDataReader)
參數
- diagnostics
- IDiagnosticsLogger<DbLoggerCategory.Database.Command>
要使用的診斷記錄器。
- connection
- IRelationalConnection
連接。
- command
- DbCommand
資料庫命令物件。
- connectionId
- Guid
與 DbConnection 所使用 關聯的相互關聯識別碼。
- startTime
- DateTimeOffset
開始執行的時間。
傳回
攔截的結果。