示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DocumentQuery&lt;T&gt;"/> class.
        /// </summary>
        public DocumentQuery(InMemoryDocumentSessionOperations session
#if !SILVERLIGHT
                             , IDatabaseCommands databaseCommands
#endif
#if !NET_3_5
                             , IAsyncDatabaseCommands asyncDatabaseCommands
#endif
                             , string indexName, string[] projectionFields, IDocumentQueryListener[] queryListeners)
            : base(session
#if !SILVERLIGHT
                   , databaseCommands
#endif
#if !NET_3_5
                   , asyncDatabaseCommands
#endif
                   , indexName, projectionFields, queryListeners)
        {
        }
示例#2
0
        /// <summary>
        ///   Initializes a new instance of the <see cref = "DocumentQuery&lt;T&gt;" /> class.
        /// </summary>
        /// <param name = "other">The other.</param>
        protected AbstractDocumentQuery(AbstractDocumentQuery <T, TSelf> other)
        {
#if !SILVERLIGHT
            theDatabaseCommands = other.theDatabaseCommands;
#endif
#if !NET_3_5
            theAsyncDatabaseCommands = other.theAsyncDatabaseCommands;
#endif
            indexName                 = other.indexName;
            projectionFields          = other.projectionFields;
            theSession                = other.theSession;
            cutoff                    = other.cutoff;
            orderByFields             = other.orderByFields;
            sortByHints               = other.sortByHints;
            pageSize                  = other.pageSize;
            theQueryText              = other.theQueryText;
            start                     = other.start;
            timeout                   = other.timeout;
            theWaitForNonStaleResults = other.theWaitForNonStaleResults;
            includes                  = other.includes;
            queryListeners            = other.queryListeners;
        }
示例#3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DocumentQuery&lt;T&gt;"/> class.
        /// </summary>
        /// <param name="databaseCommands">The database commands.</param>
#if !NET_3_5
        /// <param name="asyncDatabaseCommands">The async database commands</param>
#endif

        /// <param name = "indexName">Name of the index.</param>
        /// <param name = "projectionFields">The projection fields.</param>
        /// <param name = "theSession">The session.</param>
        public AbstractDocumentQuery(InMemoryDocumentSessionOperations theSession,
#if !SILVERLIGHT
                                     IDatabaseCommands databaseCommands,
#endif
#if !NET_3_5
                                     IAsyncDatabaseCommands asyncDatabaseCommands,
#endif
                                     string indexName,
                                     string[] projectionFields,
                                     IDocumentQueryListener[] queryListeners)
        {
#if !SILVERLIGHT
            this.theDatabaseCommands = databaseCommands;
#endif
            this.projectionFields = projectionFields;
            this.queryListeners   = queryListeners;
            this.indexName        = indexName;
            this.theSession       = theSession;
#if !NET_3_5
            this.theAsyncDatabaseCommands = asyncDatabaseCommands;
#endif
        }
示例#4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AsyncSpatialDocumentQuery{T}"/> class.
        /// </summary>
        public AsyncSpatialDocumentQuery(
            InMemoryDocumentSessionOperations session,
#if !SILVERLIGHT
            IDatabaseCommands databaseCommands,
#endif
#if !NET_3_5
            IAsyncDatabaseCommands asyncDatabaseCommands,
#endif
            string indexName,
            string[] projectionFields,
            IDocumentQueryListener[] queryListeners)
            : base(session,
#if !SILVERLIGHT
                   databaseCommands,
#endif
#if !NET_3_5
                   asyncDatabaseCommands,
#endif
                   indexName,
                   projectionFields,
                   queryListeners)
        {
        }
示例#5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AsyncDocumentQuery{T}"/> class.
 /// </summary>
 public AsyncDocumentQuery(InMemoryDocumentSessionOperations session, IDatabaseCommands databaseCommands,
                           IAsyncDatabaseCommands asyncDatabaseCommands, string indexName, string[] fieldsToFetch, string[] projectionFields, IDocumentQueryListener[] queryListeners, bool isMapReduce)
     : base(session, databaseCommands, asyncDatabaseCommands, indexName, fieldsToFetch, projectionFields, queryListeners, isMapReduce)
 {
 }
示例#6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShardedDocumentQuery{T}"/> class.
 /// </summary>
 public AsyncShardedDocumentQuery(InMemoryDocumentSessionOperations session, Func <ShardRequestData, IList <Tuple <string, IAsyncDatabaseCommands> > > getShardsToOperateOn, ShardStrategy shardStrategy, string indexName, string[] fieldsToFetch, string[] projectionFields, IDocumentQueryListener[] queryListeners, bool isMapReduce)
     : base(session, null, null, indexName, fieldsToFetch, projectionFields, queryListeners, isMapReduce)
 {
     this.getShardsToOperateOn = getShardsToOperateOn;
     this.shardStrategy        = shardStrategy;
 }