public EntityRepository(IContext context) { _context = (XmlContext)context ?? throw new NullException(() => context); _document = _context.GetDocument <Entity>(); _converter = _context.GetConverter(); }