Interface IKeyCachedRepo<TEntity, K>
Interface of a IRepo<TEntity> for entities that are assumed to have a small number of (cached) persistent instances.
public interface IKeyCachedRepo<TEntity, K> : INonQueryRepo<TEntity>, IKeyLookup<TEntity, K> where TEntity : class, new()
Type Parameters
TEntityK
- Inherited Members
- Extension Methods
Properties
AllUntracked
A queryable enumeration of ALL (cached) entities of TEntity in the store.
IQueryable<TEntity> AllUntracked { get; }
Property Value
- IQueryable<TEntity>
Remarks
Changes to returned entities are NOT beeing tracked.
Methods
InsertOrUpdate(TEntity)
(Mark) ent as updated or inserted.
TEntity InsertOrUpdate(TEntity ent)
Parameters
entTEntity
Returns
- TEntity