Beispiel #1
0
 public Exporter(PathManager mgr, TreeNode<IDataPath> pt, Configuration cfg)
 {
     this.mgr = mgr;
     this.cfg = cfg;
     this.xml = new XmlDbFile { XmlDbFolder = cfg.XmlDbFolder };
     this.fileName = cfg.OutputFile;
     if (pt.Item is Locator)
     {
         this.tname = mgr.GetPathFrom<TableName>(pt);
         this.dname = tname.DatabaseName;
         this.sname = dname.ServerName;
     }
     else if (pt.Item is TableName)
     {
         this.tname = (TableName)pt.Item;
         this.dname = tname.DatabaseName;
         this.sname = dname.ServerName;
     }
     else if (pt.Item is DatabaseName)
     {
         this.tname = null;
         this.dname = (DatabaseName)pt.Item;
         this.sname = dname.ServerName;
     }
     else if (pt.Item is ServerName)
     {
         this.tname = null;
         this.dname = null;
         this.sname = (ServerName)pt.Item;
     }
 }
Beispiel #2
0
        public PathBothSide(PathManager mgr, Command cmd)
        {
            this.mgr = mgr;
            ps1 = new PathSide(mgr);
            ps2 = new PathSide(mgr);

            var f1 = ps1.SetSource(cmd.arg1);
            var f2 = ps2.SetSink(cmd.arg2);
            valid = f1 && f2;
        }
Beispiel #3
0
 public Commandee(PathManager mgr)
 {
     this.mgr = mgr;
 }
Beispiel #4
0
        private TableName[] T; //wildcard matched tables

        #endregion Fields

        #region Constructors

        public PathSide(PathManager mgr)
        {
            this.mgr = mgr;
        }