Page Contents

Home > @loopback/repository > CrudRepositoryImpl > (constructor)

CrudRepositoryImpl.constructor

Constructs a new instance of the CrudRepositoryImpl class

Signature:

constructor(dataSource: DataSource, entityClass: typeof Entity & {
        prototype: T;
    });

Parameters

Parameter Type Description
dataSource DataSource  
entityClass typeof Entity & {
prototype: T;
}