4 ms·
Thanks! Are you suggesting business logic depends on persistence or persistence depends on business logic? How is the second option possible?
by veeralpatel979 7y ago
Thanks! Are you suggesting business logic depends on persistence or persistence depends on business logic? How is the second option possible?
- ellius 7y agoThe second option is possible if you declare an abstract dependency (preferably just a contract like an interface) and make your persistence layer implement it. I highly recommend "Clean Architecture" if you'd like to learn more about that approach.