Exemplo n.º 1
0
        /// <summary>
        /// Searches the specified query.
        /// </summary>
        /// <param name="query">The query.</param>
        /// <param name="database">The database.</param>
        /// <returns>Returns collection of items</returns>
        public override IEnumerable <Item> Search(Query query, Database database)
        {
            Assert.ArgumentNotNull(query, "query");
            Assert.ArgumentNotNull(database, "database");

            FastQueryBuilder builder = new FastQueryBuilder(query);

            return(database.SelectItems(builder.BuildResultQuery()));
        }
    /// <summary>
    /// Searches the specified query.
    /// </summary>
    /// <param name="query">The query.</param>
    /// <param name="database">The database.</param>
    /// <returns>Returns collection of items</returns>
    public override IEnumerable<Item> Search(Query query, Database database)
    {
      Assert.ArgumentNotNull(query, "query");
      Assert.ArgumentNotNull(database, "database");

      FastQueryBuilder builder = new FastQueryBuilder(query);

      return database.SelectItems(builder.BuildResultQuery());
    }
Exemplo n.º 3
0
 /// <summary>
 /// Gets the readable representation of the query.
 /// </summary>
 /// <returns>Readable representation of the query</returns>
 public override string ToString()
 {
   StringQueryBuilder builder = new FastQueryBuilder(this);
   return builder.BuildResultQuery().Substring(5);
 }
Exemplo n.º 4
0
        /// <summary>
        /// Gets the readable representation of the query.
        /// </summary>
        /// <returns>Readable representation of the query</returns>
        public override string ToString()
        {
            StringQueryBuilder builder = new FastQueryBuilder(this);

            return(builder.BuildResultQuery().Substring(5));
        }