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