NSoft.NFramework.Data.NHibernateEx.ForTesting.UnitOfWorkTestContext.Dispose C# (CSharp) Method

Dispose() public method

Release unmanaged resources. 내부 Container를 메모리에서 해제한다.
public Dispose ( ) : void
return void
        public void Dispose() {
            _dbStrategy = null;
            _mappingInfo = null;

            UnitOfWork.Stop();
            //UnitOfWork.CurrentSession = null;

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