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.