IRelationalCommandDiagnosticsLogger.CommandReaderExecuted Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
| Nama | Deskripsi |
|---|---|
| CommandReaderExecuted(IRelationalConnection, DbCommand, String, DbContext, Guid, Guid, DbDataReader, DateTimeOffset, TimeSpan, CommandSource) |
Log untuk peristiwa tersebut CommandExecuted . |
| CommandReaderExecuted(IRelationalConnection, DbCommand, DbContext, Guid, Guid, DbDataReader, DateTimeOffset, TimeSpan, CommandSource) |
Log untuk peristiwa tersebut CommandExecuted . |
CommandReaderExecuted(IRelationalConnection, DbCommand, String, DbContext, Guid, Guid, DbDataReader, DateTimeOffset, TimeSpan, CommandSource)
Log untuk peristiwa tersebut CommandExecuted .
public System.Data.Common.DbDataReader CommandReaderExecuted(Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, string logCommandText, Microsoft.EntityFrameworkCore.DbContext? context, Guid commandId, Guid connectionId, System.Data.Common.DbDataReader methodResult, DateTimeOffset startTime, TimeSpan duration, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
abstract member CommandReaderExecuted : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * string * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * System.Data.Common.DbDataReader * DateTimeOffset * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> System.Data.Common.DbDataReader
Public Function CommandReaderExecuted (connection As IRelationalConnection, command As DbCommand, logCommandText As String, context As DbContext, commandId As Guid, connectionId As Guid, methodResult As DbDataReader, startTime As DateTimeOffset, duration As TimeSpan, commandSource As CommandSource) As DbDataReader
Parameter
- connection
- IRelationalConnection
Koneksi.
- command
- DbCommand
Objek perintah database.
- logCommandText
- String
Teks perintah yang dapat dicatat.
- connectionId
- Guid
ID korelasi yang terkait dengan yang DbConnection digunakan.
- methodResult
- DbDataReader
Nilai pengembalian dari eksekusi metode yang mendasar.
- startTime
- DateTimeOffset
Waktu eksekusi dimulai.
- duration
- TimeSpan
Durasi eksekusi perintah, tidak termasuk mengkonsumsi hasil.
- commandSource
- CommandSource
Sumber perintah.
Mengembalikan
Hasil eksekusi, yang mungkin telah dimodifikasi oleh pencegat.
Berlaku untuk
CommandReaderExecuted(IRelationalConnection, DbCommand, DbContext, Guid, Guid, DbDataReader, DateTimeOffset, TimeSpan, CommandSource)
Log untuk peristiwa tersebut CommandExecuted .
public System.Data.Common.DbDataReader CommandReaderExecuted(Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext? context, Guid commandId, Guid connectionId, System.Data.Common.DbDataReader methodResult, DateTimeOffset startTime, TimeSpan duration, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
abstract member CommandReaderExecuted : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * System.Data.Common.DbDataReader * DateTimeOffset * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> System.Data.Common.DbDataReader
Public Function CommandReaderExecuted (connection As IRelationalConnection, command As DbCommand, context As DbContext, commandId As Guid, connectionId As Guid, methodResult As DbDataReader, startTime As DateTimeOffset, duration As TimeSpan, commandSource As CommandSource) As DbDataReader
Parameter
- connection
- IRelationalConnection
Koneksi.
- command
- DbCommand
Objek perintah database.
- connectionId
- Guid
ID korelasi yang terkait dengan yang DbConnection digunakan.
- methodResult
- DbDataReader
Nilai pengembalian dari eksekusi metode yang mendasar.
- startTime
- DateTimeOffset
Waktu eksekusi dimulai.
- duration
- TimeSpan
Durasi eksekusi perintah, tidak termasuk mengkonsumsi hasil.
- commandSource
- CommandSource
Sumber perintah.
Mengembalikan
Hasil eksekusi, yang mungkin telah dimodifikasi oleh pencegat.