Class DocumentUpdateOneCommand
Команда обновления одного документа в хранилище.
Inheritance
System.Object
DocumentUpdateOneCommand
Namespace:InfinniPlatform.DocumentStorage.Interceptors
Assembly:InfinniPlatform.DocumentStorage.Abstractions.dll
Syntax
public sealed class DocumentUpdateOneCommand : object, IDocumentWriteCommand
Constructors
| Improve this Doc View SourceDocumentUpdateOneCommand(Action<IDocumentUpdateBuilder>, Func<IDocumentFilterBuilder, Object>, Boolean)
Конструктор.
Declaration
public DocumentUpdateOneCommand(Action<IDocumentUpdateBuilder> update, Func<IDocumentFilterBuilder, object> filter = null, bool insertIfNotExists = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<IDocumentUpdateBuilder> | update | Оператор обновления документов. |
| Func<IDocumentFilterBuilder, System.Object> | filter | Фильтр для поиска документов. |
| System.Boolean | insertIfNotExists | Следует ли создать документ, если ничего не найдено. |
Properties
| Improve this Doc View SourceFilter
Фильтр для поиска документов.
Declaration
public Func<IDocumentFilterBuilder, object> Filter { get; set; }
Property Value
| Type | Description |
|---|---|
| Func<IDocumentFilterBuilder, System.Object> |
InsertIfNotExists
Следует ли создать документ, если ничего не найдено.
Declaration
public bool InsertIfNotExists { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Update
Оператор обновления документов.
Declaration
public Action<IDocumentUpdateBuilder> Update { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<IDocumentUpdateBuilder> |