Exemplo n.º 1
0
        public void Dispose()
        {
            if (transactionScope != null)
            {
                //transactionScope.Complete();
                transactionScope.Dispose();
                transactionScope = null;
            }

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

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