Dispose() public method

public Dispose ( ) : void
return void
Exemplo n.º 1
0
        public void TestFixtureTearDown()
        {
            OnFixtureTearDown();

            if (Database != null)
            {
                Database.Dispose();
            }

            if (System != null)
            {
                System.Dispose();
            }
        }
Exemplo n.º 2
0
        private void DisposeContext()
        {
            if (Query != null)
            {
                Query.Dispose();
            }

            if (Database != null)
            {
                Database.Dispose();
            }

            if (System != null)
            {
                System.Dispose();
            }

            Query    = null;
            Database = null;
            Database = null;
            System   = null;
        }