Show / Hide Table of Contents

Interface IDocumentBulkBuilder<TDocument>

Предоставляет методы создания набора команд изменения документов.

Namespace:InfinniPlatform.DocumentStorage
Assembly:InfinniPlatform.DocumentStorage.Abstractions.dll
Syntax
public interface IDocumentBulkBuilder<TDocument>
Type Parameters
Name Description
TDocument

Methods

| Improve this Doc View Source

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

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

Declaration
IDocumentBulkBuilder<TDocument> DeleteMany(Expression<Func<TDocument, bool>> filter = null)
Parameters
Type Name Description
Expression<Func<TDocument, System.Boolean>> filter

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

Returns
Type Description
IDocumentBulkBuilder<TDocument>
| Improve this Doc View Source

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

Удаляет первый найденный документ, удовлетворяющий указанному фильтру.

Declaration
IDocumentBulkBuilder<TDocument> DeleteOne(Expression<Func<TDocument, bool>> filter = null)
Parameters
Type Name Description
Expression<Func<TDocument, System.Boolean>> filter

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

Returns
Type Description
IDocumentBulkBuilder<TDocument>
| Improve this Doc View Source

InsertOne(TDocument)

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

Declaration
IDocumentBulkBuilder<TDocument> InsertOne(TDocument document)
Parameters
Type Name Description
TDocument document

Документ для вставки.

Returns
Type Description
IDocumentBulkBuilder<TDocument>
| Improve this Doc View Source

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

Заменяет первый найденный документ, удовлетворяющий указанному фильтру.

Declaration
IDocumentBulkBuilder<TDocument> ReplaceOne(TDocument replacement, Expression<Func<TDocument, bool>> filter = null, bool insertIfNotExists = false)
Parameters
Type Name Description
TDocument replacement

Документ замены.

Expression<Func<TDocument, System.Boolean>> filter

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

System.Boolean insertIfNotExists

Следует ли создать документ, если ничего не найдено.

Returns
Type Description
IDocumentBulkBuilder<TDocument>
| Improve this Doc View Source

UpdateMany(Action<IDocumentUpdateBuilder<TDocument>>, Expression<Func<TDocument, Boolean>>, Boolean)

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

Declaration
IDocumentBulkBuilder<TDocument> UpdateMany(Action<IDocumentUpdateBuilder<TDocument>> update, Expression<Func<TDocument, bool>> filter = null, bool insertIfNotExists = false)
Parameters
Type Name Description
Action<IDocumentUpdateBuilder<TDocument>> update

Оператор обновления документов.

Expression<Func<TDocument, System.Boolean>> filter

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

System.Boolean insertIfNotExists

Следует ли создать документ, если ничего не найдено.

Returns
Type Description
IDocumentBulkBuilder<TDocument>
| Improve this Doc View Source

UpdateOne(Action<IDocumentUpdateBuilder<TDocument>>, Expression<Func<TDocument, Boolean>>, Boolean)

Обновляет первый найденный документ, удовлетворяющий указанному фильтру.

Declaration
IDocumentBulkBuilder<TDocument> UpdateOne(Action<IDocumentUpdateBuilder<TDocument>> update, Expression<Func<TDocument, bool>> filter = null, bool insertIfNotExists = false)
Parameters
Type Name Description
Action<IDocumentUpdateBuilder<TDocument>> update

Оператор обновления документов.

Expression<Func<TDocument, System.Boolean>> filter

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

System.Boolean insertIfNotExists

Следует ли создать документ, если ничего не найдено.

Returns
Type Description
IDocumentBulkBuilder<TDocument>

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.