Class DocumentReplaceOneCommand
Команда замены одного документа в хранилище.
Inheritance
System.Object
DocumentReplaceOneCommand
Namespace:InfinniPlatform.DocumentStorage.Interceptors
Assembly:InfinniPlatform.DocumentStorage.Abstractions.dll
Syntax
public sealed class DocumentReplaceOneCommand : object, IDocumentWriteCommand
Constructors
| Improve this Doc View SourceDocumentReplaceOneCommand(DynamicDocument, Func<IDocumentFilterBuilder, Object>, Boolean)
Конструктор.
Declaration
public DocumentReplaceOneCommand(DynamicDocument replacement, Func<IDocumentFilterBuilder, object> filter = null, bool insertIfNotExists = false)
Parameters
Type | Name | Description |
---|---|---|
DynamicDocument | replacement | Документ замены. |
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 |
Replacement
Документ замены.
Declaration
public DynamicDocument Replacement { get; set; }
Property Value
Type | Description |
---|---|
DynamicDocument |