public override string ToString() { string dialstr = "???"; if (m_dialect != null) { dialstr = m_dialect.DialectName; } else if (m_dialectDetector != null) { dialstr = m_dialectDetector.ToString(); } return(String.Format("{0}-{1}", StoredConnection.ToString(), dialstr)); }
public override ITreeNode CreateNode(ITreeNode parent) { DbFileStoredConnection res = null; string dbfile = m_file.DataDiskPath; string confile = m_file.DiskPath + ".con"; if (File.Exists(confile)) { res = StoredConnection.LoadFromFile(confile) as DbFileStoredConnection; } if (res == null) { res = CreateStoredConnection(); } res.DbFilename = dbfile; res.FileName = confile; var conn = DbFromStored(res); return(new Database_SourceConnectionTreeNode(conn, parent, this, conn.Connection.StoredConnection, false)); }
public override ITreeNode CreateNode(ITreeNode parent) { IStoredConnection con = StoredConnection.LoadFromFile(m_file.DataDiskPath); return(ConnectionTreeNode.FromStoredConnection(parent, con, this)); }