Show / Hide Table of Contents

Interface IDocumentAggregateCursor

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

Inherited Members
IDocumentCursor<DynamicDocument>.Any()
IDocumentCursor<DynamicDocument>.AnyAsync()
IDocumentCursor<DynamicDocument>.First()
IDocumentCursor<DynamicDocument>.FirstAsync()
IDocumentCursor<DynamicDocument>.FirstOrDefault()
IDocumentCursor<DynamicDocument>.FirstOrDefaultAsync()
IDocumentCursor<DynamicDocument>.ToList()
IDocumentCursor<DynamicDocument>.ToListAsync()
Namespace:InfinniPlatform.DocumentStorage
Assembly:InfinniPlatform.DocumentStorage.Abstractions.dll
Syntax
public interface IDocumentAggregateCursor : IDocumentCursor<DynamicDocument>

Methods

| Improve this Doc View Source

Group(DynamicDocument)

Группирует исходные документы по указанному выражению и производит вычисление заданных функций агрегации для каждой группы.

Declaration
IDocumentAggregateCursor Group(DynamicDocument group)
Parameters
Type Name Description
DynamicDocument group

Правило группировки и агрегации групп данных.

Returns
Type Description
IDocumentAggregateCursor
| Improve this Doc View Source

Limit(Int32)

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

Declaration
IDocumentAggregateCursor Limit(int limit)
Parameters
Type Name Description
System.Int32 limit
Returns
Type Description
IDocumentAggregateCursor
| Improve this Doc View Source

Lookup(String, String, String, String)

Присоединяет к каждому исходному документу документ из указанной внешней коллекции в соответствии с заданным правилом (left outer join).

Declaration
IDocumentAggregateCursor Lookup(string foreignDocumentType, string localKeyProperty, string foreignKeyProperty, string resultArrayProperty)
Parameters
Type Name Description
System.String foreignDocumentType

Имя типа внешнего документа.

System.String localKeyProperty

Свойство исходного документа, содержащее ключ для присоединения.

System.String foreignKeyProperty

Свойство внешнего документа, содержащее ключ для присоединения.

System.String resultArrayProperty

Свойство, в которое будет помещен массив присоединенных документов.

Returns
Type Description
IDocumentAggregateCursor
| Improve this Doc View Source

Project(DynamicDocument)

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

Declaration
IDocumentAggregateCursor Project(DynamicDocument projection)
Parameters
Type Name Description
DynamicDocument projection

Правило формирования проекции.

Returns
Type Description
IDocumentAggregateCursor
| Improve this Doc View Source

Skip(Int32)

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

Declaration
IDocumentAggregateCursor Skip(int skip)
Parameters
Type Name Description
System.Int32 skip
Returns
Type Description
IDocumentAggregateCursor
| Improve this Doc View Source

SortBy(String)

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

Declaration
IDocumentAggregateSortedCursor SortBy(string property)
Parameters
Type Name Description
System.String property
Returns
Type Description
IDocumentAggregateSortedCursor
| Improve this Doc View Source

SortByDescending(String)

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

Declaration
IDocumentAggregateSortedCursor SortByDescending(string property)
Parameters
Type Name Description
System.String property
Returns
Type Description
IDocumentAggregateSortedCursor
| Improve this Doc View Source

Unwind(String)

Создает отдельный документ для каждого элемента массива, находящегося в указанном свойстве исходного документа.

Declaration
IDocumentAggregateCursor Unwind(string arrayProperty)
Parameters
Type Name Description
System.String arrayProperty

Свойство документа, содержащее массив.

Returns
Type Description
IDocumentAggregateCursor

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.