Exemplo n.º 1
0
        private void WantAdapter(TablePerspective per)
        {
            if (m_adapters.ContainsKey(per ?? nullPer))
            {
                return;
            }

            m_adapters[per ?? nullPer] = new BedAdapter(m_conn, GetQueryTemplate(per, QueryType.Select), m_isFullTableSelect);
            m_writable = !m_adapters[per ?? nullPer].IsReadOnly;
        }
Exemplo n.º 2
0
        private void LoadTableDataProlog(TableDataSetProperties props, out BedAdapter adapter, out string cmdtext)
        {
            var per = props.Perspective;

            WantAdapter(per);
            adapter = m_adapters[per ?? nullPer];

            m_conn.ReconnectIfBroken();
            if (m_conn.Dialect.DialectCaps.MultipleDatabase)
            {
                m_conn.SystemConnection.SafeChangeDatabase(m_dbname);
            }

            cmdtext = GetQuery(props, QueryType.Select);
            ProgressInfo.Debug(Texts.Get("s_executing$query", "query", cmdtext));
        }