Exemple #1
0
        public void Dispose()
        {
            if (Factory.OnDispose != null)
            {
                Factory.OnDispose(this);
            }
            if (!Factory.AutoDisposeConnection)
            {
                return;
            }

            DbConnection.Dispose();
            dbConnection = null;
        }