Page Contents

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

DefaultCrudRepository.(constructor)

Constructor of DefaultCrudRepository

Signature:

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

Parameters

Parameter Type Description
entityClass typeof Entity & {
prototype: T;
}
Legacy entity class
dataSource juggler.DataSource Legacy data source