Joutsen Persistence v0.3.0+1-ga730d6d
Public Member Functions | List of all members
Joutsen.Persistence.ReadOnlyRepository< EntityType, IdentifierType > Interface Template Reference

A repository of persisted objects from which objects can be retrieved but which cannot be changed by adding or updating objects. More...

Public Member Functions

EntityType GetById (IdentifierType id)
 Fetches an object identified by its id from the repository. More...
 

Detailed Description

A repository of persisted objects from which objects can be retrieved but which cannot be changed by adding or updating objects.

Template Parameters
EntityTypethe type of the persisted objects handled by the repository
IdentifierTypethe type of the unique identifier of the persisted objects handled by the repository
Since
0.2.0
Type Constraints
IdentifierType :struct 
EntityType :class 

Member Function Documentation

◆ GetById()

EntityType Joutsen.Persistence.ReadOnlyRepository< EntityType, IdentifierType >.GetById ( IdentifierType  id)

Fetches an object identified by its id from the repository.

Implemented in Joutsen.Persistence.NHibernate.NHibernateReadOnlyRepository< EntityType, IdentifierType >.