Show / Hide Table of Contents

Interface IDocumentUpdateBuilder<TDocument>

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

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

Methods

| Improve this Doc View Source

BitwiseAnd<TProperty>(Expression<Func<TDocument, TProperty>>, TProperty)

Создает оператор обновления, который присваивает свойству документа результат бинарного умножения (AND) текущего значения на указанное.

Declaration
IDocumentUpdateBuilder<TDocument> BitwiseAnd<TProperty>(Expression<Func<TDocument, TProperty>> property, TProperty value)
Parameters
Type Name Description
Expression<Func<TDocument, TProperty>> property
TProperty value
Returns
Type Description
IDocumentUpdateBuilder<TDocument>
Type Parameters
Name Description
TProperty
| Improve this Doc View Source

BitwiseOr<TProperty>(Expression<Func<TDocument, TProperty>>, TProperty)

Создает оператор обновления, который присваивает свойству документа результат бинарного сложения (OR) текущего значения с указанным.

Declaration
IDocumentUpdateBuilder<TDocument> BitwiseOr<TProperty>(Expression<Func<TDocument, TProperty>> property, TProperty value)
Parameters
Type Name Description
Expression<Func<TDocument, TProperty>> property
TProperty value
Returns
Type Description
IDocumentUpdateBuilder<TDocument>
Type Parameters
Name Description
TProperty
| Improve this Doc View Source

BitwiseXor<TProperty>(Expression<Func<TDocument, TProperty>>, TProperty)

Создает оператор обновления, который присваивает свойству документа результат бинарного сложения по модулю 2 (XOR) текущего значения с указанным.

Declaration
IDocumentUpdateBuilder<TDocument> BitwiseXor<TProperty>(Expression<Func<TDocument, TProperty>> property, TProperty value)
Parameters
Type Name Description
Expression<Func<TDocument, TProperty>> property
TProperty value
Returns
Type Description
IDocumentUpdateBuilder<TDocument>
Type Parameters
Name Description
TProperty
| Improve this Doc View Source

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

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

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

Inc<TProperty>(Expression<Func<TDocument, TProperty>>, TProperty)

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

Declaration
IDocumentUpdateBuilder<TDocument> Inc<TProperty>(Expression<Func<TDocument, TProperty>> property, TProperty value)
Parameters
Type Name Description
Expression<Func<TDocument, TProperty>> property
TProperty value
Returns
Type Description
IDocumentUpdateBuilder<TDocument>
Type Parameters
Name Description
TProperty
| Improve this Doc View Source

Max<TProperty>(Expression<Func<TDocument, TProperty>>, TProperty)

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

Declaration
IDocumentUpdateBuilder<TDocument> Max<TProperty>(Expression<Func<TDocument, TProperty>> property, TProperty value)
Parameters
Type Name Description
Expression<Func<TDocument, TProperty>> property
TProperty value
Returns
Type Description
IDocumentUpdateBuilder<TDocument>
Type Parameters
Name Description
TProperty
| Improve this Doc View Source

Min<TProperty>(Expression<Func<TDocument, TProperty>>, TProperty)

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

Declaration
IDocumentUpdateBuilder<TDocument> Min<TProperty>(Expression<Func<TDocument, TProperty>> property, TProperty value)
Parameters
Type Name Description
Expression<Func<TDocument, TProperty>> property
TProperty value
Returns
Type Description
IDocumentUpdateBuilder<TDocument>
Type Parameters
Name Description
TProperty
| Improve this Doc View Source

Mul<TProperty>(Expression<Func<TDocument, TProperty>>, TProperty)

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

Declaration
IDocumentUpdateBuilder<TDocument> Mul<TProperty>(Expression<Func<TDocument, TProperty>> property, TProperty value)
Parameters
Type Name Description
Expression<Func<TDocument, TProperty>> property
TProperty value
Returns
Type Description
IDocumentUpdateBuilder<TDocument>
Type Parameters
Name Description
TProperty
| Improve this Doc View Source

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

Создает оператор обновления, который проверяет, что свойство документа является массивом, и удаляет из него первый элемент.

Declaration
IDocumentUpdateBuilder<TDocument> PopFirst(Expression<Func<TDocument, object>> arrayProperty)
Parameters
Type Name Description
Expression<Func<TDocument, System.Object>> arrayProperty
Returns
Type Description
IDocumentUpdateBuilder<TDocument>
| Improve this Doc View Source

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

Создает оператор обновления, который проверяет, что свойство документа является массивом, и удаляет из него последний элемент.

Declaration
IDocumentUpdateBuilder<TDocument> PopLast(Expression<Func<TDocument, object>> arrayProperty)
Parameters
Type Name Description
Expression<Func<TDocument, System.Object>> arrayProperty
Returns
Type Description
IDocumentUpdateBuilder<TDocument>
| Improve this Doc View Source

Pull<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>>, TItem)

Создает оператор обновления, который проверяет, что свойство документа является массивом, и удаляет из него указанный элемент.

Declaration
IDocumentUpdateBuilder<TDocument> Pull<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>> arrayProperty, TItem item)
Parameters
Type Name Description
Expression<Func<TDocument, IEnumerable<TItem>>> arrayProperty
TItem item
Returns
Type Description
IDocumentUpdateBuilder<TDocument>
Type Parameters
Name Description
TItem
| Improve this Doc View Source

PullAll<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>>, IEnumerable<TItem>)

Создает оператор обновления, который проверяет, что свойство документа является массивом, и удаляет из него все указанные элементы.

Declaration
IDocumentUpdateBuilder<TDocument> PullAll<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>> arrayProperty, IEnumerable<TItem> items)
Parameters
Type Name Description
Expression<Func<TDocument, IEnumerable<TItem>>> arrayProperty
IEnumerable<TItem> items
Returns
Type Description
IDocumentUpdateBuilder<TDocument>
Type Parameters
Name Description
TItem
| Improve this Doc View Source

PullFilter<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>>, Expression<Func<TItem, Boolean>>)

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

Declaration
IDocumentUpdateBuilder<TDocument> PullFilter<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>> arrayProperty, Expression<Func<TItem, bool>> filter = null)
Parameters
Type Name Description
Expression<Func<TDocument, IEnumerable<TItem>>> arrayProperty
Expression<Func<TItem, System.Boolean>> filter
Returns
Type Description
IDocumentUpdateBuilder<TDocument>
Type Parameters
Name Description
TItem
| Improve this Doc View Source

Push<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>>, TItem)

Создает оператор обновления, который проверяет, что свойство документа является массивом, и добавляет в него указанный элемент.

Declaration
IDocumentUpdateBuilder<TDocument> Push<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>> arrayProperty, TItem item)
Parameters
Type Name Description
Expression<Func<TDocument, IEnumerable<TItem>>> arrayProperty
TItem item
Returns
Type Description
IDocumentUpdateBuilder<TDocument>
Type Parameters
Name Description
TItem
| Improve this Doc View Source

PushAll<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>>, IEnumerable<TItem>)

Создает оператор обновления, который проверяет, что свойство документа является массивом, и добавляет в него все указанные элементы.

Declaration
IDocumentUpdateBuilder<TDocument> PushAll<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>> arrayProperty, IEnumerable<TItem> items)
Parameters
Type Name Description
Expression<Func<TDocument, IEnumerable<TItem>>> arrayProperty
IEnumerable<TItem> items
Returns
Type Description
IDocumentUpdateBuilder<TDocument>
Type Parameters
Name Description
TItem
| Improve this Doc View Source

PushAllUnique<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>>, IEnumerable<TItem>)

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

Declaration
IDocumentUpdateBuilder<TDocument> PushAllUnique<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>> arrayProperty, IEnumerable<TItem> items)
Parameters
Type Name Description
Expression<Func<TDocument, IEnumerable<TItem>>> arrayProperty
IEnumerable<TItem> items
Returns
Type Description
IDocumentUpdateBuilder<TDocument>
Type Parameters
Name Description
TItem
| Improve this Doc View Source

PushUnique<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>>, TItem)

Создает оператор обновления, который проверяет, что свойство документа является массивом, и добавляет в него указанный элемент, если его еще нет в массиве.

Declaration
IDocumentUpdateBuilder<TDocument> PushUnique<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>> arrayProperty, TItem item)
Parameters
Type Name Description
Expression<Func<TDocument, IEnumerable<TItem>>> arrayProperty
TItem item
Returns
Type Description
IDocumentUpdateBuilder<TDocument>
Type Parameters
Name Description
TItem
| Improve this Doc View Source

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

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

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

Rename(Expression<Func<TDocument, Object>>, String)

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

Declaration
IDocumentUpdateBuilder<TDocument> Rename(Expression<Func<TDocument, object>> property, string newProperty)
Parameters
Type Name Description
Expression<Func<TDocument, System.Object>> property
System.String newProperty
Returns
Type Description
IDocumentUpdateBuilder<TDocument>
| Improve this Doc View Source

Set<TProperty>(Expression<Func<TDocument, TProperty>>, TProperty)

Создает оператор обновления, который присваивает свойству документа указанное значение.

Declaration
IDocumentUpdateBuilder<TDocument> Set<TProperty>(Expression<Func<TDocument, TProperty>> property, TProperty value)
Parameters
Type Name Description
Expression<Func<TDocument, TProperty>> property
TProperty value
Returns
Type Description
IDocumentUpdateBuilder<TDocument>
Type Parameters
Name Description
TProperty

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.