/// <summary>
 /// 执行 SQL 异常
 /// </summary>
 public virtual void OnDbCommandException(DbCommandException e)
 {
     if (this.OnException != null)
     {
         this.OnException(e);
     }
 }
Beispiel #2
0
 /// <summary>
 /// 执行 SQL 异常
 /// </summary>
 internal static void OnException(DbCommandException e)
 {
     foreach (var interceptor in _interceptors)
     {
         interceptor.OnDbCommandException(e);
     }
 }