Exemplo n.º 1
0
        public MappingModel(Mapping mapping)
        {
            mapper = new Mapper();
            mapper.MaxMappingsToBuild = 100;

            Mapping = mapping;

            SourceTree           = new MatchTree(this);
            SourceTree.IsPrimary = true;
            TargetTree           = new MatchTree(this);
            TargetTree.IsPrimary = false;

            SourceTab = mapping.SourceTab; // Here also the tree will be constructed
            TargetTab = mapping.TargetTab;
        }
Exemplo n.º 2
0
        public MappingModel(DcTable sourceTab, DcTable targetTab)
        {
            mapper = new Mapper();
            mapper.MaxMappingsToBuild = 100;

            Mapping = new Mapping(sourceTab, targetTab);

            SourceTree           = new MatchTree(this);
            SourceTree.IsPrimary = true;
            TargetTree           = new MatchTree(this);
            TargetTree.IsPrimary = false;

            SourceTab = sourceTab; // Here also the tree will be constructed
            TargetTab = targetTab;
        }
Exemplo n.º 3
0
        public PathMatch AddMatch()
        {
            MatchTree root = (MatchTree)Root;

            return(root.MappingModel.AddMatch());
        }