MongoRepository documentation
IRepositoryT, TKeyGetById Method |
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)

T GetById( TKey id )
Function GetById ( id As TKey ) As T
T GetById( TKey id )
abstract GetById : id : 'TKey -> 'T
Parameters
- id
- Type: TKey
The value representing the ObjectId of the entity to retrieve.
Return Value
Type: TThe Entity T.
