You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we want to migrate to Native Repositories, we need to support native Entities.
This means that the repository package will contain interfaces of the Entities.
The [DB]-repository package should contain a mapper that maps/transforms DTO's into implemented Entities.
For example:
App > Service > Repository
The App layer has a dependency on the Service layer.
The Service layer has a dependency on an implemented Data layer (Repository).
The app communicates in DTO's ( towards the UI and Service ). The service Maps a DTO from the App into an Entity via the injected Mapper (from the repository). This entity will be passed down to the repository.
Once an Entity comes back from the repository, it should be mapped in the service to a DTO.
The service returns the DTO to the App
The text was updated successfully, but these errors were encountered:
If we want to migrate to Native Repositories, we need to support native Entities.
This means that the
repository
package will contain interfaces of the Entities.The
[DB]-repository
package should contain a mapper that maps/transforms DTO's into implemented Entities.For example:
App > Service > Repository
The App layer has a dependency on the Service layer.
The Service layer has a dependency on an implemented Data layer (Repository).
The app communicates in DTO's ( towards the UI and Service ). The service Maps a DTO from the App into an Entity via the injected Mapper (from the repository). This entity will be passed down to the repository.
Once an Entity comes back from the repository, it should be mapped in the service to a DTO.
The service returns the DTO to the App
The text was updated successfully, but these errors were encountered: