MongoRepository(T, TKey).GetById Method (TKey)

MongoRepository

MongoRepositoryT, TKeyGetById Method (TKey)
Returns the T by its given id.

Namespace: MongoRepository
Assembly: MongoRepository.Net45 (in MongoRepository.Net45.dll) Version: 1.6.11.0 (1.6.11.0)
Syntax
public virtual T GetById(
	TKey id
)
Public Overridable Function GetById ( 
	id As TKey
) As T
public:
virtual T GetById(
	TKey id
)
abstract GetById : 
        id : 'TKey -> 'T 
override GetById : 
        id : 'TKey -> 'T 

Parameters

id
Type: TKey
The Id of the entity to retrieve.

Return Value

Type: T
The Entity T.

Implements

IRepositoryT, TKeyGetById(TKey)
See Also