Esempio n. 1
0
 /// <inheritdoc/>
 public override void Close()
 {
     if (InnerConnection != null)
     {
         InnerConnection.Close();
     }
 }
Esempio n. 2
0
        /// <inheritdoc/>
        protected override void Dispose(bool disposing)
        {
            try
            {
                if (disposing)
                {
                    if (InnerTransaction != null)
                    {
                        if (OwnedTransaction)
                        {
                            InnerTransaction.Dispose();
                        }

                        InnerTransaction = null;
                    }

                    if (InnerConnection != null)
                    {
                        InnerConnection.Close();
                        InnerConnection = null;
                    }
                }
            }
            finally
            {
                base.Dispose(disposing);
            }
        }
Esempio n. 3
0
 /// <summary>
 ///     Close DB connection
 /// </summary>
 public override void Dispose()
 {
     if (InnerConnection != null && InnerConnection.State != ConnectionState.Closed)
     {
         InnerConnection.Close();
     }
     if (_dict != null)
     {
         _dict = null;
     }
 }
Esempio n. 4
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (InnerConnection.State == ConnectionState.Open)
                {
                    InnerConnection.Close();
                }

                InnerConnection.Dispose();
            }

            GC.SuppressFinalize(this);
        }
 public override void Close()
 {
     InnerConnection.Close();
 }
Esempio n. 6
0
 public override void Close()
 {
     InnerConnection.Close();
     NotifyClosing();
 }
Esempio n. 7
0
 public override void Close()
 {
     _profiler.ConnectionClosed(InnerConnection, NHProfilerContextProvider.GetLoggedDbConnection(InnerConnection));
     InnerConnection.Close();
 }