protected override void Dispose(bool disposing)
 {
     if (!disposed)
     {
         if (disposing)
         {
             using (ExecuteHelper.Begin(dur => context.FireExecuteEvent(this, "Dispose", dur)))
             {
                 connection.Dispose();
             }
         }
         disposed = true;
     }
 }
Beispiel #2
0
 protected override void Dispose(bool disposing)
 {
     if (!disposed)
     {
         if (disposing)
         {
             var threadId = GetThreadId();
             using (ExecuteHelper.Begin(dur => context.FireExecuteEvent("Dispose", dur, threadId)))
             {
                 if (dbCommandProxy != null)
                 {
                     dbCommandProxy.Dispose();
                 }
                 connection.Dispose();
             }
         }
         disposed = true;
     }
 }