---
lang: en
title: 'API docs: repository.defaultcrudrepository._constructor_'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.repository.defaultcrudrepository._constructor_.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [DefaultCrudRepository](./repository.defaultcrudrepository.md) &gt; [(constructor)](./repository.defaultcrudrepository._constructor_.md)

## DefaultCrudRepository._constructor_

Constructor of DefaultCrudRepository

<b>Signature:</b>

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

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  entityClass | <code>typeof Entity &amp; {</code><br/><code>        prototype: T;</code><br/><code>    }</code> | Legacy entity class |
|  dataSource | <code>juggler.DataSource</code> | Legacy data source |


