Page Contents

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

DefaultKeyValueRepository.(constructor)

Construct a KeyValueRepository with a legacy DataSource

Signature:

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

Parameters

Parameter Type Description
entityClass typeof Entity & {
prototype: T;
}
 
ds juggler.DataSource Legacy DataSource