IPatchOperationBuilder<TItem>
Allows a collection of `PatchOperation`'s to built./>
Namespace: Microsoft.Azure.CosmosRepository.Builders
Kind: interface
Allows a collection of PatchOperation’s to built./>
public interface IPatchOperationBuilder<TItem> where TItem : IItemType parameters
| Name | Description |
|---|---|
TItem | — |
Example
Members
Property
IPatchOperationBuilder<TItem>.PatchOperations
The currently built PatchOperation’s
IReadOnlyList<PatchOperation> PatchOperations { get; }Returns — PatchOperation}
Method
IPatchOperationBuilder<TItem>.Replace<TValue>(Expression<Func<TItem, TValue>>, TValue?)
Allows a property of an IItem to be replaced with the value provided
IPatchOperationBuilder<TItem> Replace<TValue>(Expression<Func<TItem, TValue>> expression, TValue? value)Parameters
| Name | Type | Description |
|---|---|---|
expression | Func{{TItem},{TValue}}} | The expression to define which property to operate on. |
value | {TValue} | The value to replace the property defined with. |
Returns — IPatchOperationBuilder: The same instance of IPatchOperationBuilder
Properties on nested objects are supported. The path is composed from the entire member access
chain of the given expression, where each segment is resolved using the
JsonPropertyAttribute applied to the property when present, and the configured
CosmosPropertyNamingPolicy otherwise. For example, item => item.Address.City
operates on the /address/city path.