コード例 #1
0
        public static IEnumerable <JsonDocument> AllDocumentsStartingWith(this DocumentStore docStore, string startingWith, int pageSize)
        {
            var paging = new RavenPagingInformation();

            {
                do
                {
                    var documents = docStore.DatabaseCommands.StartsWith(startingWith, null, paging.NextPageStart, pageSize, paging);
                    foreach (var doc in documents)
                    {
                        yield return(doc);
                    }
                } while (!paging.IsLastPage());
            }
        }