Comments (7)
Hi Marlon,
Could you share where you found the issue?
If the question is regarding classes like the following:
public class CustomerRepository : ICustomerReadOnlyRepository, ICustomerWriteOnlyRepository
{
//
}
Then I think it is correct. My intent is that the consumers of ICustomerReadOnlyRepository are seeing only the methods they need. That's the reason I applied ISP
and spitted the interfaces in two.
On the other hand, the class implementation has the responsibility to consume the database and they implement both Reading and Writing methods.
What do you think?
/Ivan
from clean-architecture-manga.
Hi Ivan,
I think I expressed myself poorly.
I agree as to the function of the class, what I meant was that the class was named CustomerReadOnlyRepository when in this case it performs read and write operations, as distinguished in the interfaces ICustomerReadOnlyRepository, ICustomerWriteOnlyRepository.
In the case I am questioning if the name of the class, in this case, should not be only, CustomerRepository as well as AccountRepository.
No more, great code, thanks for sharing.
/Marlon
from clean-architecture-manga.
Hi @MarlonMiranda you are correct. And that was good catch!
Soon there will be a fix.
Regards,
Ivan
from clean-architecture-manga.
@all-contributors please add @MarlonMiranda for design and tests
from clean-architecture-manga.
I've put up a pull request to add @jakebolam! 🎉
from clean-architecture-manga.
@all-contributors please add @MarlonMiranda for design and tests
from clean-architecture-manga.
I've put up a pull request to add @MarlonMiranda! 🎉
from clean-architecture-manga.
Related Issues (20)
- Add ASP NET Identity
- Add MinVer and generate unique releases HOT 1
- Introduce HashCode struct into ValueObjects design HOT 1
- Withdrawal Concurrency HOT 2
- Failed to compile: Cannot find name 'connect'. TS2304 HOT 2
- Can Infrastructure layer reference direct a class on Domain layer? HOT 2
- On microservices, should the use case call the another service? HOT 4
- Executable specifications with Specflow HOT 2
- (Docker) issues running on Mac HOT 3
- Add Jaeger, Prometheus, Grafana and ELK docker containers
- [Question] How does the layering of this project match the clean architecture official diagram? HOT 1
- Multitenant support? HOT 1
- Environment Setup: docker_nginx doesn't not start - [emerg] 1#1: host not found in upstream HOT 2
- Repositories and Performance
- ./startup.sh failing on WebApi .Net 5 HOT 1
- Controller endpoint expects a ViewModel class as parameter (input)
- account-api won't start in Docker
- IdentityServer4 key rotation and management HOT 2
- Use Auth0 HOT 3
- Change IdentityServer to OpenIddict or implement both
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clean-architecture-manga.