Show / Hide Table of Contents

Interface IDocumentAggregateCursor<TResult>

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

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

Methods

| Improve this Doc View Source

Group<TKey, TNewResult>(Expression<Func<TResult, TKey>>, Expression<Func<IGrouping<TKey, TResult>, TNewResult>>)

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

Declaration
IDocumentAggregateCursor<TNewResult> Group<TKey, TNewResult>(Expression<Func<TResult, TKey>> groupKey, Expression<Func<IGrouping<TKey, TResult>, TNewResult>> groupValue)
Parameters
Type Name Description
Expression<Func<TResult, TKey>> groupKey

Функция выборки группы.

Expression<Func<IGrouping<TKey, TResult>, TNewResult>> groupValue

Функция агрегации группы.

Returns
Type Description
IDocumentAggregateCursor<TNewResult>
Type Parameters
Name Description
TKey
TNewResult
| Improve this Doc View Source

Limit(Int32)

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

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

Lookup<TForeignDocument, TNewResult>(String, Expression<Func<TResult, Object>>, Expression<Func<TForeignDocument, Object>>, Expression<Func<TNewResult, Object>>)

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

Declaration
IDocumentAggregateCursor<TNewResult> Lookup<TForeignDocument, TNewResult>(string foreignDocumentType, Expression<Func<TResult, object>> localKeyProperty, Expression<Func<TForeignDocument, object>> foreignKeyProperty, Expression<Func<TNewResult, object>> resultArrayProperty)
Parameters
Type Name Description
System.String foreignDocumentType

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

Expression<Func<TResult, System.Object>> localKeyProperty

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

Expression<Func<TForeignDocument, System.Object>> foreignKeyProperty

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

Expression<Func<TNewResult, System.Object>> resultArrayProperty

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

Returns
Type Description
IDocumentAggregateCursor<TNewResult>
Type Parameters
Name Description
TForeignDocument
TNewResult
| Improve this Doc View Source

Project<TNewResult>(Expression<Func<TResult, TNewResult>>)

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

Declaration
IDocumentAggregateCursor<TNewResult> Project<TNewResult>(Expression<Func<TResult, TNewResult>> projection)
Parameters
Type Name Description
Expression<Func<TResult, TNewResult>> projection

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

Returns
Type Description
IDocumentAggregateCursor<TNewResult>
Type Parameters
Name Description
TNewResult
| Improve this Doc View Source

Skip(Int32)

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

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

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

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

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

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

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

Declaration
IDocumentAggregateSortedCursor<TResult> SortByDescending(Expression<Func<TResult, object>> property)
Parameters
Type Name Description
Expression<Func<TResult, System.Object>> property
Returns
Type Description
IDocumentAggregateSortedCursor<TResult>
| Improve this Doc View Source

Unwind<TNewResult>(Expression<Func<TResult, Object>>)

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

Declaration
IDocumentAggregateCursor<TNewResult> Unwind<TNewResult>(Expression<Func<TResult, object>> arrayProperty)
Parameters
Type Name Description
Expression<Func<TResult, System.Object>> arrayProperty

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

Returns
Type Description
IDocumentAggregateCursor<TNewResult>
Type Parameters
Name Description
TNewResult

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.