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; } }
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; }
public Commandee(PathManager mgr) { this.mgr = mgr; }
private TableName[] T; //wildcard matched tables #endregion Fields #region Constructors public PathSide(PathManager mgr) { this.mgr = mgr; }