共用方式為


MigrationSqlGenerator.IsPermissionDeniedError(Exception) 方法

定義

判斷提供者特定例外狀況是否對應至資料庫層級許可權拒絕錯誤。

public virtual bool IsPermissionDeniedError (Exception exception);
abstract member IsPermissionDeniedError : Exception -> bool
override this.IsPermissionDeniedError : Exception -> bool

參數

exception
Exception

資料庫例外狀況。

傳回

如果提供的例外狀況對應至資料庫層級許可權拒絕錯誤,則為 true;否則為 false。

適用於