/// <summary> /// Initializes a new instance of the <see cref="RavenQueryProvider{T}"/> class. /// </summary> public RavenQueryProvider( IDocumentQueryGenerator queryGenerator, string indexName, RavenQueryStatistics ravenQueryStatistics, RavenQueryHighlightings highlightings #if !SILVERLIGHT , IDatabaseCommands databaseCommands #endif , IAsyncDatabaseCommands asyncDatabaseCommands, bool isMapReduce ) { FieldsToFetch = new HashSet <string>(); FieldsToRename = new List <RenamedField>(); this.queryGenerator = queryGenerator; this.indexName = indexName; this.ravenQueryStatistics = ravenQueryStatistics; this.highlightings = highlightings; #if !SILVERLIGHT this.databaseCommands = databaseCommands; #endif this.asyncDatabaseCommands = asyncDatabaseCommands; this.isMapReduce = isMapReduce; }
/// <summary> /// Initializes a new instance of the <see cref="RavenQueryProvider{T}"/> class. /// </summary> public RavenQueryProvider( IDocumentQueryGenerator queryGenerator, string indexName, RavenQueryStatistics ravenQueryStatistics #if !SILVERLIGHT , IDatabaseCommands databaseCommands #endif #if !NET35 , IAsyncDatabaseCommands asyncDatabaseCommands #endif ) { FieldsToFetch = new HashSet <string>(); FieldsToRename = new Dictionary <string, string>(); this.queryGenerator = queryGenerator; this.indexName = indexName; this.ravenQueryStatistics = ravenQueryStatistics; #if !SILVERLIGHT this.databaseCommands = databaseCommands; #endif #if !NET35 this.asyncDatabaseCommands = asyncDatabaseCommands; #endif }
/// <summary> /// Creates a dynamic query provider around the provided session /// </summary> public DynamicQueryProviderProcessor( IDocumentQueryGenerator queryGenerator, Action <IDocumentQueryCustomization> customizeQuery, Action <QueryResult> afterQueryExecuted, string indexName, HashSet <string> fieldsToFetch) : base(queryGenerator, customizeQuery, afterQueryExecuted, indexName, fieldsToFetch) { }
/// <summary> /// Initializes a new instance of the <see cref="RavenQueryProviderProcessor<T>"/> class. /// </summary> /// <param name="queryGenerator">The document query generator.</param> /// <param name="customizeQuery">The customize query.</param> /// <param name="afterQueryExecuted">Executed after the query run, allow access to the query results</param> /// <param name="indexName">The name of the index the query is executed against.</param> /// <param name="fieldsToFetch">The fields to fetch in this query</param> public RavenQueryProviderProcessor( IDocumentQueryGenerator queryGenerator, Action <IDocumentQueryCustomization> customizeQuery, Action <QueryResult> afterQueryExecuted, string indexName, HashSet <string> fieldsToFetch) { FieldsToFetch = fieldsToFetch; newExpressionType = typeof(T); this.queryGenerator = queryGenerator; this.indexName = indexName; this.afterQueryExecuted = afterQueryExecuted; this.customizeQuery = customizeQuery; }
/// <summary> /// Initializes a new instance of the <see cref="RavenQueryProvider{T}"/> class. /// </summary> public RavenQueryProvider( IDocumentQueryGenerator queryGenerator, string indexName, RavenQueryStatistics ravenQueryStatistics, RavenQueryHighlightings highlightings , bool isMapReduce ) { FieldsToFetch = new HashSet <string>(); FieldsToRename = new List <RenamedField>(); this.queryGenerator = queryGenerator; this.indexName = indexName; this.ravenQueryStatistics = ravenQueryStatistics; this.highlightings = highlightings; this.isMapReduce = isMapReduce; }
/// <summary> /// Initializes a new instance of the <see cref="RavenQueryProvider{T}"/> class. /// </summary> public RavenQueryProvider( IDocumentQueryGenerator queryGenerator, string indexName, string collectionName, Type originalQueryType, QueryStatistics queryStatistics, QueryHighlightings highlightings, bool isMapReduce) { FieldsToFetch = new HashSet <FieldToFetch>(); OriginalQueryType = originalQueryType; _queryGenerator = queryGenerator; _indexName = indexName; _collectionName = collectionName; _queryStatistics = queryStatistics; _highlightings = highlightings; _isMapReduce = isMapReduce; }
/// <summary> /// Initializes a new instance of the <see cref="RavenQueryProvider{T}"/> class. /// </summary> public RavenQueryProvider( #if FEATURE_HIGHLIGHTING QueryHighlightings highlightings, #endif IDocumentQueryGenerator queryGenerator, string indexName, string collectionName, Type originalQueryType, QueryStatistics queryStatistics, bool isMapReduce, DocumentConventions conventions) { FieldsToFetch = new HashSet <FieldToFetch>(); OriginalQueryType = originalQueryType; _queryGenerator = queryGenerator; _indexName = indexName; _collectionName = collectionName; _queryStatistics = queryStatistics; #if FEATURE_HIGHLIGHTING _highlightings = highlightings; #endif _isMapReduce = isMapReduce; _conventions = conventions; }