/// <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()); }
/// <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); }
/// <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)); }