i have a this question, that i just cant get my head around it Right now, i am implementing a DDD architecture, in a .NET CORE project, i have created 3 layers, Application, Domain, Infrastructure, but there is a problem, on which i cant understand I have implemented the Repository Patterns and IUnitOfWork, but a question remains in my head The domain layer will do the business logic to the Data, but how is that Data going to be persisted in the DB? since the Domain layer cant have dependencies on infrastructure Will it send the data back to the Application and then Application layer sends to the infrastructure? Or will the Domain layer have a ApplicationDbContext file too, like Infrastructure Layer?
Here is a snippet of my Current Folder structure!:
