Skip to main content

I am trying to apply Robert Martin's clean architectureClean Architecture on my .NET.NET project. In one of chapters about boundary, it talks about that database interface should reside in business logic component rather than database component. In a way that interface is in business logic and implementation is in database. One of interfaces I use, is IRepository.

If I move repository interfaces to business logic, then I have to move definition of database entities into the business logic which does not seem to be correct. Maybe repositoryrepository interfaces should not use database entities directly? whatWhat is the correct way? I am confused.

I am trying to apply Robert Martin's clean architecture on my .NET project. In one of chapters about boundary, it talks about that database interface should reside in business logic component rather than database component. In a way that interface is in business logic and implementation is in database. One of interfaces I use, is IRepository.

If I move repository interfaces to business logic, then I have to move definition of database entities into the business logic which does not seem to be correct. Maybe repository interfaces should not use database entities directly? what is the correct way? I am confused.

I am trying to apply Robert Martin's Clean Architecture on my .NET project. In one of chapters about boundary, it talks about that database interface should reside in business logic component rather than database component. In a way that interface is in business logic and implementation is in database. One of interfaces I use, is IRepository.

If I move repository interfaces to business logic, then I have to move definition of database entities into the business logic which does not seem to be correct. Maybe repository interfaces should not use database entities directly? What is the correct way? I am confused.

added 12 characters in body
Source Link
Afshar
  • 223
  • 3
  • 8

I am trying to apply Robert Martin's clean architectureclean architecture on my .net.NET project. inIn one of chapters about boundary, it talks about that database interface should reside in business logic component rather than database component. inIn a way that interface is in business logic and implementation is in database. oneOne of interfaces iI use, is IRepositoryIRepository. 

If iI move repository interfaces to business logic, then I have to move definition of database entities into the business logic which does not seem to be correct. maybe repositoryMaybe repository interfaces should not use database entities directly? what is the correct way? iI am confused.

I am trying to apply Robert Martin's clean architecture on my .net project. in one of chapters about boundary it talks about that database interface should reside in business logic component rather than database component. in a way that interface is in business logic and implementation is in database. one of interfaces i use, is IRepository. If i move repository interfaces to business logic, then I have to move definition of database entities into the business logic which does not seem to be correct. maybe repository interfaces should not use database entities directly? what is the correct way? i am confused

I am trying to apply Robert Martin's clean architecture on my .NET project. In one of chapters about boundary, it talks about that database interface should reside in business logic component rather than database component. In a way that interface is in business logic and implementation is in database. One of interfaces I use, is IRepository. 

If I move repository interfaces to business logic, then I have to move definition of database entities into the business logic which does not seem to be correct. Maybe repository interfaces should not use database entities directly? what is the correct way? I am confused.

edited tags
Link
Afshar
  • 223
  • 3
  • 8
Source Link
Afshar
  • 223
  • 3
  • 8
Loading