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