コード例 #1
0
        /// <summary>
        /// Add additional queries to the request. These
        /// will get bundled in as additional queries. This
        /// will affect the query that is executed in the Get()
        /// method and the ToString() output, but will not
        /// change any items specific to this query. Each
        /// query will individually be calling it's ToString()
        /// to get the query to be batched. Use Alias names
        /// where appropriate if calling the same Query multiple times.
        /// </summary>
        /// <param name="query"></param>
        /// <returns>IQuery</returns>
        public IQuery Batch(IQuery query)
        {
            if (query != null)
            {
                BatchQueryList.Add(query);
            }

            return(this);
        }
コード例 #2
0
        /// <summary>
        /// Clear the Query and anything related
        /// </summary>
        public void Clear()
        {
            // reset all member vars to clean state

            Builder.Clear();
            SelectList.Clear();
            WhereMap.Clear();
            QueryName    = string.Empty;
            AliasName    = string.Empty;
            QueryComment = string.Empty;
            RawQuery     = string.Empty;
            BatchQueryList.Clear();
        }