IDbConnectionInterceptor.ConnectionFailed 方法

定义

在连接关闭失败并出现异常时调用。

public void ConnectionFailed (System.Data.Common.DbConnection connection, Microsoft.EntityFrameworkCore.Diagnostics.ConnectionErrorEventData eventData);
public virtual void ConnectionFailed (System.Data.Common.DbConnection connection, Microsoft.EntityFrameworkCore.Diagnostics.ConnectionErrorEventData eventData);
abstract member ConnectionFailed : System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.Diagnostics.ConnectionErrorEventData -> unit
abstract member ConnectionFailed : System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.Diagnostics.ConnectionErrorEventData -> unit
override this.ConnectionFailed : System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.Diagnostics.ConnectionErrorEventData -> unit
Public Sub ConnectionFailed (connection As DbConnection, eventData As ConnectionErrorEventData)
Public Overridable Sub ConnectionFailed (connection As DbConnection, eventData As ConnectionErrorEventData)

参数

connection
DbConnection

连接。

eventData
ConnectionErrorEventData

有关连接的上下文信息。

适用于