RepositoryInstanceTKey, TValue Methods |
The RepositoryInstanceTKey, TValue generic type exposes the following members.
Name | Description | |
---|---|---|
AddOrUpdate |
Adds or updates the entity T with key TK
| |
Any |
Check if the repository has any items at all
| |
ContainsKey |
Checks if the repository has a key TK
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
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
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Remove(FuncTValue, Boolean) |
Removes all entities matching the expression f
| |
Remove(TKey) |
Removes the entity T with key TK
| |
RemoveAll |
Clears the repository
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryAdd |
Tries to add a key/value pair to the repository
| |
TryGet |
Tries to get a entity for the specified key
|