Example #1
0
        public GenericDbConnection(GenericDbConnectionFactory fact)
            : base(fact)
        {
            //m_conn = conn;
            //string connectionString, DbProviderFactory factory, string title, IDialectDetector dialectDetector, IStoredConnection storedConnection
            //m_title = storedConnection.ToString() .GetTitle();
            m_storedConnection = fact.Stored;
            m_factory          = m_storedConnection.GetFactory();
            m_connectionString = m_storedConnection.GenerateConnectionString(true);
            m_dialectDetector  = m_storedConnection.GetDialectDetector();

            ProviderHooks = m_storedConnection.CreateHooks();
            m_storedConnection.InstallHooks(this);
        }
Example #2
0
 void frame_OnConnectionChanged(object sender, EventArgs e)
 {
     m_frame.SaveConnection();
     connectionstring.Text = m_conn.GenerateConnectionString(false);
 }