示例#1
0
        protected virtual void Dispose(bool disposing)
        {
            if (!_isDisposed)
            {
                if (disposing)
                {
                    _context.Dispose();
                }

                _context    = null;
                _isDisposed = true;
            }
        }
示例#2
0
 public RepositoryBase()
 {
     _context   = new DbdItDbContext();
     _entitySet = _context.Set <T>();
 }