Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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));
        }
Ejemplo n.º 3
0
        public override ITreeNode CreateNode(ITreeNode parent)
        {
            IStoredConnection con = StoredConnection.LoadFromFile(m_file.DataDiskPath);

            return(ConnectionTreeNode.FromStoredConnection(parent, con, this));
        }