Class: RepositoryDefinition
Runtime description of a repository class and its generated implementation.
Constructors
Constructor
new RepositoryDefinition(
target,entity,dataSourceName,implementation):RepositoryDefinition
Parameters
target
Decorated repository class used as the dependency injection token.
entity
ClassType<ObjectLiteral>
Entity handled by this repository.
dataSourceName
string
Name of the configured TypeORM data source containing the entity.
implementation
object
Proxy-backed repository instance registered with the application container.
Returns
RepositoryDefinition
Properties
dataSourceName
readonlydataSourceName:string
Name of the configured TypeORM data source containing the entity.
entity
readonlyentity:ClassType<ObjectLiteral>
Entity handled by this repository.
implementation
readonlyimplementation:object
Proxy-backed repository instance registered with the application container.
target
readonlytarget:ClassType
Decorated repository class used as the dependency injection token.