Dil

IRelationalCommandDiagnosticsLogger.CommandErrorAsync Yöntem

Tanım

Aşırı Yüklemeler

CommandErrorAsync(IRelationalConnection, DbCommand, String, DbContext, DbCommandMethod, Guid, Guid, Exception, DateTimeOffset, TimeSpan, CommandSource, CancellationToken)

Kaynak:
IRelationalCommandDiagnosticsLogger.cs
Kaynak:
IRelationalCommandDiagnosticsLogger.cs

Olay için CommandError günlükler.

public System.Threading.Tasks.Task CommandErrorAsync(Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, string logCommandText, Microsoft.EntityFrameworkCore.DbContext? context, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod executeMethod, Guid commandId, Guid connectionId, Exception exception, DateTimeOffset startTime, TimeSpan duration, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource, System.Threading.CancellationToken cancellationToken = default);
abstract member CommandErrorAsync : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * string * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * Exception * DateTimeOffset * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CommandErrorAsync (connection As IRelationalConnection, command As DbCommand, logCommandText As String, context As DbContext, executeMethod As DbCommandMethod, commandId As Guid, connectionId As Guid, exception As Exception, startTime As DateTimeOffset, duration As TimeSpan, commandSource As CommandSource, Optional cancellationToken As CancellationToken = Nothing) As Task

Parametreler

connection
IRelationalConnection

Bağlantı.

command
DbCommand

Veritabanı komut nesnesi.

logCommandText
String

Günlüğe kaydedilebilen komut metni.

context
DbContext

Bilinen DbContext değilse null olarak kullanılmakta olan.

executeMethod
DbCommandMethod

komutunu yürütmek için çağrılacak yöntemi temsil eder.

commandId
Guid

Verilen DbCommandile ilişkili bağıntı kimliği.

connectionId
Guid

Kullanılan ile ilişkili bağıntı DbConnection kimliği.

exception
Exception

Bu hataya neden olan özel durum.

startTime
DateTimeOffset

Yürütmenin başladığı zaman.

duration
TimeSpan

Özel durum yükseltilene kadar geçen süre.

commandSource
CommandSource

Komutun kaynağı.

cancellationToken
CancellationToken

CancellationToken Görevin tamamlanmasını beklerken gözlemlemek için bir.

Döndürülenler

Task Zaman uyumsuz işlemi temsil eden bir.

Özel durumlar

Şunlara uygulanır

CommandErrorAsync(IRelationalConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, Exception, DateTimeOffset, TimeSpan, CommandSource, CancellationToken)

Kaynak:
IRelationalCommandDiagnosticsLogger.cs
Kaynak:
IRelationalCommandDiagnosticsLogger.cs
Kaynak:
IRelationalCommandDiagnosticsLogger.cs
Kaynak:
IRelationalCommandDiagnosticsLogger.cs

Olay için CommandError günlükler.

public System.Threading.Tasks.Task CommandErrorAsync(Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext? context, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod executeMethod, Guid commandId, Guid connectionId, Exception exception, DateTimeOffset startTime, TimeSpan duration, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource, System.Threading.CancellationToken cancellationToken = default);
abstract member CommandErrorAsync : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * Exception * DateTimeOffset * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CommandErrorAsync (connection As IRelationalConnection, command As DbCommand, context As DbContext, executeMethod As DbCommandMethod, commandId As Guid, connectionId As Guid, exception As Exception, startTime As DateTimeOffset, duration As TimeSpan, commandSource As CommandSource, Optional cancellationToken As CancellationToken = Nothing) As Task

Parametreler

connection
IRelationalConnection

Bağlantı.

command
DbCommand

Veritabanı komut nesnesi.

context
DbContext

Bilinen DbContext değilse null olarak kullanılmakta olan.

executeMethod
DbCommandMethod

komutunu yürütmek için çağrılacak yöntemi temsil eder.

commandId
Guid

Verilen DbCommandile ilişkili bağıntı kimliği.

connectionId
Guid

Kullanılan ile ilişkili bağıntı DbConnection kimliği.

exception
Exception

Bu hataya neden olan özel durum.

startTime
DateTimeOffset

Yürütmenin başladığı zaman.

duration
TimeSpan

Özel durum yükseltilene kadar geçen süre.

commandSource
CommandSource

Komutun kaynağı.

cancellationToken
CancellationToken

CancellationToken Görevin tamamlanmasını beklerken gözlemlemek için bir.

Döndürülenler

Task Zaman uyumsuz işlemi temsil eden bir.

Özel durumlar

Şunlara uygulanır