23.237. Class UpdateDefinition<T>
Namespace: ArmoniK.Core.Common.Storage
Assembly: ArmoniK.Core.Common.dll
Express the updates of an object of type T.
public class UpdateDefinition<T>
23.237.1. Type Parameters
T
Type on which the updates would be applied
23.237.2. Inheritance
23.237.3. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
23.237.4. Properties
23.237.4.1. Setters
List of setters
public List<UpdateDefinition<T>.PropertySet> Setters { get; }
23.237.4.1.1. Property Value
23.237.5. Methods
23.237.5.1. ApplyTo(T)
Apply all the updates to x
public void ApplyTo(T x)
23.237.5.1.1. Parameters
x T
Object to update
23.237.5.2. Set<TProperty>(Expression<Func<T, TProperty>>, TProperty)
Add a new setter to the UpdateDefinition
public UpdateDefinition<T> Set<TProperty>(Expression<Func<T, TProperty>> property, TProperty value)
23.237.5.2.1. Parameters
property Expression<Func<T, TProperty>>
Property definition
value TProperty
New value
23.237.5.2.2. Returns
The extended UpdateDefinition
23.237.5.2.3. Type Parameters
TProperty
Type of the property