protected virtual void Dispose(Boolean disposing)
        {
            if (!Disposed)
            {
                if (disposing)
                {
                    DbContext.Dispose();
                }
            }

            Disposed = true;
        }
Пример #2
0
        public void Dispose()
        {
            if (Disposed)
            {
                return;
            }

            DbContext.Dispose();

            GC.SuppressFinalize(this);

            Disposed = true;
        }