Interface ISourceUpdater<TObject, TKey>
- Namespace
- DynamicData
- Assembly
- DynamicData.dll
API for updating a source cache.
Use edit to produce singular change set.
NB: The evaluate method is used to signal to any observing operators to reevaluate whether the object still matches downstream operators. This is primarily targeted to inline object changes such as datetime and calculated fields.
public interface ISourceUpdater<TObject, TKey> : ICacheUpdater<TObject, TKey>, IQuery<TObject, TKey> where TObject : notnull where TKey : notnull
Type Parameters
TObject
The type of the object.
TKey
The type of the key.
- Inherited Members
Methods
AddOrUpdate(IEnumerable<TObject>)
Adds or changes the specified items.
void AddOrUpdate(IEnumerable<TObject> items)
Parameters
items
IEnumerable<TObject>The items.
AddOrUpdate(IEnumerable<TObject>, IEqualityComparer<TObject>)
Adds or changes the specified items.
void AddOrUpdate(IEnumerable<TObject> items, IEqualityComparer<TObject> comparer)
Parameters
items
IEnumerable<TObject>The items.
comparer
IEqualityComparer<TObject>The comparer.
AddOrUpdate(TObject)
Adds or updates the item.
void AddOrUpdate(TObject item)
Parameters
item
TObjectThe item.
AddOrUpdate(TObject, IEqualityComparer<TObject>)
Adds or updates the item using a comparer.
void AddOrUpdate(TObject item, IEqualityComparer<TObject> comparer)
Parameters
item
TObjectThe item.
comparer
IEqualityComparer<TObject>The comparer.
Load(IEnumerable<TObject>)
Clears existing values and loads the specified items.
void Load(IEnumerable<TObject> items)
Parameters
items
IEnumerable<TObject>The items.
Refresh(IEnumerable<TObject>)
Refreshes the specified items.
void Refresh(IEnumerable<TObject> items)
Parameters
items
IEnumerable<TObject>The items.
Refresh(TObject)
Refreshes the specified item.
void Refresh(TObject item)
Parameters
item
TObjectThe item.
Remove(IEnumerable<TObject>)
Removes the specified items.
void Remove(IEnumerable<TObject> items)
Parameters
items
IEnumerable<TObject>The items.
Remove(TObject)
Removes the specified item.
void Remove(TObject item)
Parameters
item
TObjectThe item.