Skip to content

Repositories

The repositories section allows you to create your data access layer, known as Repository Pattern, allowing to implement the data persistence.

Each repository is divided into two parts, one to writing data and other for reading data.

Fields

A repository contains the following fields to be defined:

Name

The name of repository to be created.

Requirements Rules:

  • Is Required;
  • Must not be a Reserved Keyword;
  • Must start with a letter;
  • Must contains only letters, numbers and the underline char ('_');
  • Max length of 50 chars

Example:

1
2
Repositories:
- Name: Entity01_Repository


EntityName

The name of business entity linked to this repository.

Requirements Rules:

  • Is Required;
  • The name must exist in Entities list in the current model;
    • See Entity section for more details.
  • The entity must have a KeyType property defined

Example:

1
2
3
Repositories:
- Name: My_First_Entity_Repository
  EntityName: My_First_Entity


DbContextName

The name of dbContext that will be responsible by database data context.

Requirements Rules:

  • Is Required;
  • The name must exist in DbContexts list in the current model;

Example:

1
2
3
4
Repositories:
- Name: My_First_Entity_Repository
  EntityName: My_First_Entity
  DbContextName: My_First_DbContext


Back to top