@loopback/docs
Version:
Documentation for LoopBack 4
34 lines (23 loc) • 1.08 kB
Markdown
lang: en
title: 'API docs: repository.crudrepositoryimpl._constructor_'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/repository
permalink: /doc/en/lb4/apidocs.repository.crudrepositoryimpl._constructor_.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/repository](./repository.md) > [CrudRepositoryImpl](./repository.crudrepositoryimpl.md) > [(constructor)](./repository.crudrepositoryimpl._constructor_.md)
## CrudRepositoryImpl.(constructor)
Constructs a new instance of the `CrudRepositoryImpl` class
<b>Signature:</b>
```typescript
constructor(dataSource: DataSource, entityClass: typeof Entity & {
prototype: T;
});
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| dataSource | <code>DataSource</code> | |
| entityClass | <code>typeof Entity & {</code><br/><code> prototype: T;</code><br/><code> }</code> | |