示例#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);
        }