Указатель на список документов для поиска.
Namespace:InfinniPlatform.DocumentStorage
Assembly:InfinniPlatform.DocumentStorage.Abstractions.dll
public interface IDocumentFindCursor<TDocument, TProjection> : IDocumentCursor<TProjection>
Type Parameters
Name |
Description |
TDocument |
|
TProjection |
|
Methods
|
Improve this Doc
View Source
Возвращает количество документов, удовлетворяющих указанному фильтру.
Declaration
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
Возвращает количество документов, удовлетворяющих указанному фильтру.
Declaration
Returns
Type |
Description |
Task<System.Int64> |
|
|
Improve this Doc
View Source
Ограничивает результирующую выборку указанным количеством документов.
Declaration
IDocumentFindCursor<TDocument, TProjection> Limit(int limit)
Parameters
Type |
Name |
Description |
System.Int32 |
limit |
|
Returns
|
Improve this Doc
View Source
Создает проекцию для выборки документов.
Declaration
IDocumentFindCursor<TDocument, TNewProjection> Project<TNewProjection>(Expression<Func<TDocument, TNewProjection>> projection)
Parameters
Type |
Name |
Description |
Expression<Func<TDocument, TNewProjection>> |
projection |
|
Returns
Type Parameters
Name |
Description |
TNewProjection |
|
|
Improve this Doc
View Source
Пропускает указанное количество документов в результирующей выборке.
Declaration
IDocumentFindCursor<TDocument, TProjection> Skip(int skip)
Parameters
Type |
Name |
Description |
System.Int32 |
skip |
|
Returns
|
Improve this Doc
View Source
Сортирует документы по возрастанию указанного свойства.
Declaration
IDocumentFindSortedCursor<TDocument, TProjection> SortBy(Expression<Func<TDocument, object>> property)
Parameters
Type |
Name |
Description |
Expression<Func<TDocument, System.Object>> |
property |
|
Returns
|
Improve this Doc
View Source
Сортирует документы по убыванию указанного свойства.
Declaration
IDocumentFindSortedCursor<TDocument, TProjection> SortByDescending(Expression<Func<TDocument, object>> property)
Parameters
Type |
Name |
Description |
Expression<Func<TDocument, System.Object>> |
property |
|
Returns
|
Improve this Doc
View Source
SortByTextScore(Expression<Func<TProjection, Object>>)
Сортирует документы по убыванию релевантности, значение которой находится в указанном свойстве.
Declaration
IDocumentFindSortedCursor<TDocument, TProjection> SortByTextScore(Expression<Func<TProjection, object>> textScoreProperty)
Parameters
Type |
Name |
Description |
Expression<Func<TProjection, System.Object>> |
textScoreProperty |
|
Returns
|
Improve this Doc
View Source
Добавляет условие фильтрации.
Declaration
IDocumentFindCursor<TDocument, TProjection> Where(Expression<Func<TDocument, bool>> filter)
Parameters
Type |
Name |
Description |
Expression<Func<TDocument, System.Boolean>> |
filter |
Фильтр для поиска документов.
|
Returns
Extension Methods