Show / Hide Table of Contents

Interface IDocumentFindCursor<TDocument, TProjection>

Указатель на список документов для поиска.

Inherited Members
IDocumentCursor<TProjection>.Any()
IDocumentCursor<TProjection>.AnyAsync()
IDocumentCursor<TProjection>.First()
IDocumentCursor<TProjection>.FirstAsync()
IDocumentCursor<TProjection>.FirstOrDefault()
IDocumentCursor<TProjection>.FirstOrDefaultAsync()
IDocumentCursor<TProjection>.ToList()
IDocumentCursor<TProjection>.ToListAsync()
Namespace:InfinniPlatform.DocumentStorage
Assembly:InfinniPlatform.DocumentStorage.Abstractions.dll
Syntax
public interface IDocumentFindCursor<TDocument, TProjection> : IDocumentCursor<TProjection>
Type Parameters
Name Description
TDocument
TProjection

Methods

| Improve this Doc View Source

Count()

Возвращает количество документов, удовлетворяющих указанному фильтру.

Declaration
long Count()
Returns
Type Description
System.Int64
| Improve this Doc View Source

CountAsync()

Возвращает количество документов, удовлетворяющих указанному фильтру.

Declaration
Task<long> CountAsync()
Returns
Type Description
Task<System.Int64>
| Improve this Doc View Source

Limit(Int32)

Ограничивает результирующую выборку указанным количеством документов.

Declaration
IDocumentFindCursor<TDocument, TProjection> Limit(int limit)
Parameters
Type Name Description
System.Int32 limit
Returns
Type Description
IDocumentFindCursor<TDocument, TProjection>
| Improve this Doc View Source

Project<TNewProjection>(Expression<Func<TDocument, TNewProjection>>)

Создает проекцию для выборки документов.

Declaration
IDocumentFindCursor<TDocument, TNewProjection> Project<TNewProjection>(Expression<Func<TDocument, TNewProjection>> projection)
Parameters
Type Name Description
Expression<Func<TDocument, TNewProjection>> projection
Returns
Type Description
IDocumentFindCursor<TDocument, TNewProjection>
Type Parameters
Name Description
TNewProjection
| Improve this Doc View Source

Skip(Int32)

Пропускает указанное количество документов в результирующей выборке.

Declaration
IDocumentFindCursor<TDocument, TProjection> Skip(int skip)
Parameters
Type Name Description
System.Int32 skip
Returns
Type Description
IDocumentFindCursor<TDocument, TProjection>
| Improve this Doc View Source

SortBy(Expression<Func<TDocument, Object>>)

Сортирует документы по возрастанию указанного свойства.

Declaration
IDocumentFindSortedCursor<TDocument, TProjection> SortBy(Expression<Func<TDocument, object>> property)
Parameters
Type Name Description
Expression<Func<TDocument, System.Object>> property
Returns
Type Description
IDocumentFindSortedCursor<TDocument, TProjection>
| Improve this Doc View Source

SortByDescending(Expression<Func<TDocument, Object>>)

Сортирует документы по убыванию указанного свойства.

Declaration
IDocumentFindSortedCursor<TDocument, TProjection> SortByDescending(Expression<Func<TDocument, object>> property)
Parameters
Type Name Description
Expression<Func<TDocument, System.Object>> property
Returns
Type Description
IDocumentFindSortedCursor<TDocument, TProjection>
| 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
Type Description
IDocumentFindSortedCursor<TDocument, TProjection>
| Improve this Doc View Source

Where(Expression<Func<TDocument, Boolean>>)

Добавляет условие фильтрации.

Declaration
IDocumentFindCursor<TDocument, TProjection> Where(Expression<Func<TDocument, bool>> filter)
Parameters
Type Name Description
Expression<Func<TDocument, System.Boolean>> filter

Фильтр для поиска документов.

Returns
Type Description
IDocumentFindCursor<TDocument, TProjection>

Extension Methods

DynamicCollectionExtensions.GetItem(Object, Int32)
DynamicCollectionExtensions.SetItem(Object, Int32, Object)
DynamicCollectionExtensions.AddItem(Object, Object)
DynamicCollectionExtensions.InsertItem(Object, Int32, Object)
DynamicCollectionExtensions.RemoveItem(Object, Object)
DynamicCollectionExtensions.RemoveItemAt(Object, Int32)
DynamicCollectionExtensions.MoveItem(Object, Object, Int32)
DynamicObjectExtensions.TryGetPropertyValue(Object, String)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TryGetPropertyValueByPath(Object, String)
DynamicObjectExtensions.TrySetPropertyValueByPath(Object, String, Object)
ReflectionExtensions.IsInstanceOfType(Object, Type)
ReflectionExtensions.GetMemberValue(Object, String)
ReflectionExtensions.SetMemberValue(Object, String, Object)
ReflectionExtensions.InvokeMember(Object, String, Object[], out Object, Type[])
ReflectionExtensions.GetFieldValue(Object, FieldInfo)
ReflectionExtensions.SetFieldValue(Object, FieldInfo, Object)
ReflectionExtensions.GetPropertyValue(Object, PropertyInfo)
ReflectionExtensions.SetPropertyValue(Object, PropertyInfo, Object)
ReflectionExtensions.GetMethodDelegate(Object, MethodInfo)
ReflectionExtensions.GetEventDelegate(Object, EventInfo)
ReflectionExtensions.SetEventDelegate(Object, EventInfo, Object)
CommonExtensions.ExecuteSilent<T>(T, Action<T>)
  • Improve this Doc
  • View Source
Back to top © Copyright Infinnity Solutions Ltd, 2010–2017.