Page Contents
Home > @loopback/repository > ModelRepositoryClass
ModelRepositoryClass interface
Signature for a Repository class bound to a given model. The constructor accepts only the dataSource to use for persistence.
define*
functions return a class implementing this interface.
Signature:
export interface ModelRepositoryClass<M extends Model, R extends Repository<M>>
Properties
Property | Type | Description |
---|---|---|
prototype | R |
Methods
Method | Description |
---|---|
(new)(dataSource) | The constructor for the generated repository class |