Ejemplo n.º 1
0
        public bool Execute <T>(MySqlBase <T> mySqlBase)
        {
            if (m_holder == null)
            {
                return(false);
            }

            // execute all queries in the holder and pass the results
            foreach (var pair in m_holder.m_queries)
            {
                m_holder.SetResult(pair.Key, mySqlBase.Query(pair.Value));
            }

            return(m_result.TrySetResult(m_holder));
        }
Ejemplo n.º 2
0
        public bool Execute <T>(MySqlBase <T> mySqlBase)
        {
            if (_needsResult)
            {
                SQLResult result = mySqlBase.Query(m_stmt);
                if (result == null)
                {
                    m_result.SetResult(new SQLResult());
                    return(false);
                }

                m_result.SetResult(result);
                return(true);
            }

            return(mySqlBase.DirectExecute(m_stmt));
        }