---
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 |


