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; }
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; }
public PathMatch AddMatch() { MatchTree root = (MatchTree)Root; return(root.MappingModel.AddMatch()); }