
ilovedotnet
June 1, 2025 at 10:15 AM
Is your repository interface violating SOLID?
If you're forcing consumers to depend on unused methods, you're breaking the Interface Segregation Principle.
💡 In this blog, I show how to fix it by splitting IGenericRepository into:
IReadableRepository 📖
IWritableRepository ✍️
✅ Cleaner code
✅ Lower coupling
✅ Easier testing
🔗 Read the full blog:
https://ilovedotnet.org/blogs/interface-segregation-principle-in-solid/
👍
1