Click or drag to resize

RepositoryTKey, TValue Methods

The RepositoryTKey, TValue generic type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAddOrUpdate
Adds or updates the entity TValue with key TKey
Public methodStatic memberAny
Check if the repository has any items at all
Public methodStatic memberContainsKey
Checks if the repository has a key TK
Public methodStatic memberFind
Find all entities T matching the expression f
Public methodStatic memberFindWithKeys
Find all entities T matching the expression f and returns a Dictionary TK,T
Public methodStatic memberGetAll
Returns all entities T from the repository
Public methodStatic memberGetAllWithKeys
Returns all entities as a Dictionary TK,T
Public methodStatic memberGetById
Get a single entity T with the key TK
Public methodStatic memberGetByIdWithKey
Get a single entity T as a KeyValuePair TK,T with the key TK
Public methodStatic memberRemove(FuncTValue, Boolean)
Removes all entities matching the expression f
Public methodStatic memberRemove(TKey)
Removes the entity T with key TK
Public methodStatic memberRemoveAll
Clears the repository
Top
See Also