RepositoryTKey, TValue Class |
Namespace: Crosser.Common.Utilities.Persistence
The RepositoryTKey, TValue type exposes the following members.
| Name | Description | |
|---|---|---|
| AddOrUpdate |
Adds or updates the entity TValue with key TKey
| |
| Any |
Check if the repository has any items at all
| |
| ContainsKey |
Checks if the repository has a key TK
| |
| Find |
Find all entities T matching the expression f
| |
| FindWithKeys |
Find all entities T matching the expression f and returns a Dictionary TK,T
| |
| GetAll |
Returns all entities T from the repository
| |
| GetAllWithKeys |
Returns all entities as a Dictionary TK,T
| |
| GetById |
Get a single entity T with the key TK
| |
| GetByIdWithKey |
Get a single entity T as a KeyValuePair TK,T with the key TK
| |
| Remove(FuncTValue, Boolean) |
Removes all entities matching the expression f
| |
| Remove(TKey) |
Removes the entity T with key TK
| |
| RemoveAll |
Clears the repository
|