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