示例#1
0
 public void Dispose()
 {
     if (_databaseContext != null)
     {
         _databaseContext.Dispose();
     }
 }
示例#2
0
 protected virtual void Dispose(bool disposing)
 {
     if (!disposed)
     {
         if (disposing)
         {
             context.Dispose();
             if (transaction != null)
             {
                 transaction.Dispose();
             }
         }
     }
     disposed = true;
 }