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); }
void frame_OnConnectionChanged(object sender, EventArgs e) { m_frame.SaveConnection(); connectionstring.Text = m_conn.GenerateConnectionString(false); }