|
BeganTransaction(DbConnection, BeginTransactionInterceptionContext)
|
被召喚後 BeginTransaction(IsolationLevel) 被召喚。
此方法的預設實作會依 DbContext 集合篩選 ,若有 , Context然後記錄事件。
|
|
BeginningTransaction(DbConnection, BeginTransactionInterceptionContext)
|
除非被覆寫,否則不會寫入日誌。
|
|
Closed(DbConnection, DbConnectionInterceptionContext)
|
被召喚後 Close() 被召喚。
此方法的預設實作會依 DbContext 集合篩選 ,若有 , Context然後記錄事件。
|
|
Closing(DbConnection, DbConnectionInterceptionContext)
|
除非被覆寫,否則不會寫入日誌。
|
|
Committed(DbTransaction, DbTransactionInterceptionContext)
|
此方法在被呼叫後 Commit() 被呼叫。
此方法的預設實作會依 DbContext 集合篩選 ,若有 , Context然後記錄事件。
|
|
Committing(DbTransaction, DbTransactionInterceptionContext)
|
除非被覆寫,否則不會寫入日誌。
|
|
ConnectionGetting(DbTransaction, DbTransactionInterceptionContext<DbConnection>)
|
除非被覆寫,否則不會寫入日誌。
|
|
ConnectionGot(DbTransaction, DbTransactionInterceptionContext<DbConnection>)
|
除非被覆寫,否則不會寫入日誌。
|
|
ConnectionStringGetting(DbConnection, DbConnectionInterceptionContext<String>)
|
除非被覆寫,否則不會寫入日誌。
|
|
ConnectionStringGot(DbConnection, DbConnectionInterceptionContext<String>)
|
除非被覆寫,否則不會寫入日誌。
|
|
ConnectionStringSet(DbConnection, DbConnectionPropertyInterceptionContext<String>)
|
除非被覆寫,否則不會寫入日誌。
|
|
ConnectionStringSetting(DbConnection, DbConnectionPropertyInterceptionContext<String>)
|
除非被覆寫,否則不會寫入日誌。
|
|
ConnectionTimeoutGetting(DbConnection, DbConnectionInterceptionContext<Int32>)
|
除非被覆寫,否則不會寫入日誌。
|
|
ConnectionTimeoutGot(DbConnection, DbConnectionInterceptionContext<Int32>)
|
除非被覆寫,否則不會寫入日誌。
|
|
DatabaseGetting(DbConnection, DbConnectionInterceptionContext<String>)
|
除非被覆寫,否則不會寫入日誌。
|
|
DatabaseGot(DbConnection, DbConnectionInterceptionContext<String>)
|
除非被覆寫,否則不會寫入日誌。
|
|
DataSourceGetting(DbConnection, DbConnectionInterceptionContext<String>)
|
除非被覆寫,否則不會寫入日誌。
|
|
DataSourceGot(DbConnection, DbConnectionInterceptionContext<String>)
|
除非被覆寫,否則不會寫入日誌。
|
|
Disposed(DbConnection, DbConnectionInterceptionContext)
|
除非被覆寫,否則不會寫入日誌。
|
|
Disposed(DbTransaction, DbTransactionInterceptionContext)
|
除非被覆寫,否則不會寫入日誌。
|
|
Disposing(DbConnection, DbConnectionInterceptionContext)
|
先被召喚 Dispose() 的就是被召喚。
此方法的預設實作會依 DbContext 集合篩選 ,若有 , Context然後記錄事件。
|
|
Disposing(DbTransaction, DbTransactionInterceptionContext)
|
此方法在呼叫前 Dispose() 被呼叫。
此方法的預設實作會依 DbContext 集合篩選 ,若有 , Context然後記錄事件。
|
|
EnlistedTransaction(DbConnection, EnlistTransactionInterceptionContext)
|
除非被覆寫,否則不會寫入日誌。
|
|
EnlistingTransaction(DbConnection, EnlistTransactionInterceptionContext)
|
除非被覆寫,否則不會寫入日誌。
|
|
Equals(Object)
|
這是設定在屬性上的Action<T>Log預設日誌格式化器。 另一種格式化器可透過建立繼承該類別並覆寫部分或全部方法來改變行為來使用不同的格式化器。
|
|
Executed<TResult>(DbCommand, DbCommandInterceptionContext<TResult>)
|
當指令執行完成時呼叫。 此方法的預設實作會依 DbContext 集合篩選至 ( Context若有),然後呼叫 LogResult<TResult>(DbCommand, DbCommandInterceptionContext<TResult>)。 此方法通常只會被覆寫以改變上下文過濾行為。
|
|
Executing<TResult>(DbCommand, DbCommandInterceptionContext<TResult>)
|
每當指令即將執行時就會被呼叫。 此方法的預設實作會依 DbContext 集合篩選至 ( Context若有),然後呼叫 LogCommand<TResult>(DbCommand, DbCommandInterceptionContext<TResult>)。 此方法通常只會被覆寫以改變上下文過濾行為。
|
|
GetHashCode()
|
這是設定在屬性上的Action<T>Log預設日誌格式化器。 另一種格式化器可透過建立繼承該類別並覆寫部分或全部方法來改變行為來使用不同的格式化器。
|
|
GetStopwatch(DbCommandInterceptionContext)
|
碼錶過去用來計時處決。 此碼錶從 、 ScalarExecuting(DbCommand, DbCommandInterceptionContext<Object>)和 ReaderExecuting(DbCommand, DbCommandInterceptionContext<DbDataReader>) 方法的結尾開始,並在 、 ScalarExecuted(DbCommand, DbCommandInterceptionContext<Object>)和 ReaderExecuted(DbCommand, DbCommandInterceptionContext<DbDataReader>) 方法 的開頭NonQueryExecuting(DbCommand, DbCommandInterceptionContext<Int32>)NonQueryExecuted(DbCommand, DbCommandInterceptionContext<Int32>)停止。 如果這些方法被覆寫且正在使用碼錶,則覆蓋應該要麼呼叫基礎方法,要麼自行啟動/停止碼錶。
|
|
GetType()
|
這是設定在屬性上的Action<T>Log預設日誌格式化器。 另一種格式化器可透過建立繼承該類別並覆寫部分或全部方法來改變行為來使用不同的格式化器。
|
|
IsolationLevelGetting(DbTransaction, DbTransactionInterceptionContext<IsolationLevel>)
|
除非被覆寫,否則不會寫入日誌。
|
|
IsolationLevelGot(DbTransaction, DbTransactionInterceptionContext<IsolationLevel>)
|
除非被覆寫,否則不會寫入日誌。
|
|
LogCommand<TResult>(DbCommand, DbCommandInterceptionContext<TResult>)
|
被呼叫來記錄即將執行的指令。 覆寫此方法以改變指令的記錄方式 System.Data.Entity.Infrastructure.Interception.DatabaseLogFormatter.WriteAction。
|
|
LogParameter<TResult>(DbCommand, DbCommandInterceptionContext<TResult>, DbParameter)
|
呼叫 來 LogCommand<TResult>(DbCommand, DbCommandInterceptionContext<TResult>) 記錄每個參數。 此方法可從覆寫的實作 LogCommand<TResult>(DbCommand, DbCommandInterceptionContext<TResult>) 呼叫至 log 參數,及/或覆寫以改變參數的 log System.Data.Entity.Infrastructure.Interception.DatabaseLogFormatter.WriteAction方式。
|
|
LogResult<TResult>(DbCommand, DbCommandInterceptionContext<TResult>)
|
呼叫來記錄執行指令的結果。 覆寫此方法以改變結果的記錄方式。System.Data.Entity.Infrastructure.Interception.DatabaseLogFormatter.WriteAction
|
|
NonQueryExecuted(DbCommand, DbCommandInterceptionContext<Int32>)
|
此方法在呼叫 或 ExecuteNonQuery() 其非同步對應節點後被呼叫。
預設實作會停止從 返回的 GetStopwatch(DbCommandInterceptionContext) 秒錶,並呼叫 Executed<TResult>(DbCommand, DbCommandInterceptionContext<TResult>)。
|
|
NonQueryExecuting(DbCommand, DbCommandInterceptionContext<Int32>)
|
此方法會在呼叫 或 ExecuteNonQuery() 其非同步對應節點之前被呼叫。
預設實作呼叫 Executing<TResult>(DbCommand, DbCommandInterceptionContext<TResult>) 並啟動從 返回的 GetStopwatch(DbCommandInterceptionContext)碼錶。
|
|
Opened(DbConnection, DbConnectionInterceptionContext)
|
在之後 Open() 被呼叫,或其非同步對應程式被調用。
此方法的預設實作會依 DbContext 集合篩選 ,若有 , Context然後記錄事件。
|
|
Opening(DbConnection, DbConnectionInterceptionContext)
|
除非被覆寫,否則不會寫入日誌。
|
|
ReaderExecuted(DbCommand, DbCommandInterceptionContext<DbDataReader>)
|
此方法在呼叫 或 ExecuteReader(CommandBehavior) 其非同步對應節點後被呼叫。
預設實作會停止從 返回的 GetStopwatch(DbCommandInterceptionContext) 秒錶,並呼叫 Executed<TResult>(DbCommand, DbCommandInterceptionContext<TResult>)。
|
|
ReaderExecuting(DbCommand, DbCommandInterceptionContext<DbDataReader>)
|
此方法會在呼叫 或 ExecuteReader(CommandBehavior) 其非同步對應節點之前被呼叫。
預設實作呼叫 Executing<TResult>(DbCommand, DbCommandInterceptionContext<TResult>) 並啟動從 返回的 GetStopwatch(DbCommandInterceptionContext)碼錶。
|
|
RolledBack(DbTransaction, DbTransactionInterceptionContext)
|
此方法在被呼叫後 Rollback() 被呼叫。
此方法的預設實作會依 DbContext 集合篩選 ,若有 , Context然後記錄事件。
|
|
RollingBack(DbTransaction, DbTransactionInterceptionContext)
|
除非被覆寫,否則不會寫入日誌。
|
|
ScalarExecuted(DbCommand, DbCommandInterceptionContext<Object>)
|
此方法在呼叫 或 ExecuteScalar() 其非同步對應節點後被呼叫。
預設實作會停止從 返回的 GetStopwatch(DbCommandInterceptionContext) 秒錶,並呼叫 Executed<TResult>(DbCommand, DbCommandInterceptionContext<TResult>)。
|
|
ScalarExecuting(DbCommand, DbCommandInterceptionContext<Object>)
|
此方法會在呼叫 或 ExecuteScalar() 其非同步對應節點之前被呼叫。
預設實作呼叫 Executing<TResult>(DbCommand, DbCommandInterceptionContext<TResult>) 並啟動從 返回的 GetStopwatch(DbCommandInterceptionContext)碼錶。
|
|
ServerVersionGetting(DbConnection, DbConnectionInterceptionContext<String>)
|
除非被覆寫,否則不會寫入日誌。
|
|
ServerVersionGot(DbConnection, DbConnectionInterceptionContext<String>)
|
除非被覆寫,否則不會寫入日誌。
|
|
StateGetting(DbConnection, DbConnectionInterceptionContext<ConnectionState>)
|
除非被覆寫,否則不會寫入日誌。
|
|
StateGot(DbConnection, DbConnectionInterceptionContext<ConnectionState>)
|
除非被覆寫,否則不會寫入日誌。
|
|
ToString()
|
這是設定在屬性上的Action<T>Log預設日誌格式化器。 另一種格式化器可透過建立繼承該類別並覆寫部分或全部方法來改變行為來使用不同的格式化器。
|
|
Write(String)
|
將給定字串寫入底層的寫入代理。
|