This presentation is awesome! So glad I made the time to watch it. I've been trying to apply all these concepts that have been taught from different perspectives and styles. This video put it all together for me. I get it now. Thank you very much!
you define IDbContext interface inside your application layer. And make an implementation of it inside Infrastructure (by referencing Application from Infrastructure). This way you could have later InfrastructureA and InfrastructureB projects using say different DBs and replace one implementation with another (in theory)
Great talk, and excellent content Luke P. Well done! 👏
Attended this in person and it was super awesome!
This presentation is awesome! So glad I made the time to watch it. I've been trying to apply all these concepts that have been taught from different perspectives and styles. This video put it all together for me. I get it now. Thank you very much!
But how did we got DB context in application in clean architecture, so are we adding project reference of Infrastructure in Application ?
you define IDbContext interface inside your application layer. And make an implementation of it inside Infrastructure (by referencing Application from Infrastructure).
This way you could have later InfrastructureA and InfrastructureB projects using say different DBs and replace one implementation with another (in theory)
Nice one, Luke!