private void parse(ModelMap map, XDocument document, ModelMapCompilationReport report)
        {
            var root    = document.Root;
            var context = new ParsingContext(_services, report);

            map.AddInstruction(new BeginModelMap(map.Name));
            context.PushObject(map);

            root
            .Elements()
            .Each(_ => _elementService.Visit(_, map, context));

            context.PopObject();
            map.AddInstruction(new EndModelMap());
        }
예제 #2
0
        private List <TableSchemaMetadata> parse(XDocument document)
        {
            var root     = document.Root;
            var context  = new ParsingContext(_services);
            var metadata = new List <TableSchemaMetadata>();

            context.PushObject(metadata);

            root
            .Elements()
            .Each(_ => _elements.Visit(_, context));

            context.PopObject();

            return(metadata);
        }