Пример #1
0
 /// <summary>
 /// Clean up any resources being used.
 /// </summary>
 /// <param name="disposing">True if managed resources should be disposed; otherwise, false.</param>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         BaseConnection.Dispose();
     }
 }
Пример #2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
Пример #3
0
 /// <summary>
 /// Disposes DbManager object with sub objects.
 /// </summary>
 public void Dispose()
 {
     try
     {
         if (pConn != null)
         {
             pConn.Dispose();
         }
     }
     catch (Exception e)
     {
     }
     finally
     {
         pConn = null;
     }
 }
 /// <summary>
 /// Dispose Objects
 /// </summary>
 public void Dispose()
 {
     baseConnection.Dispose();
 }