KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
What's the difference between a repository and a service? I don't seem to grasp it. I'm talking about data access through a data access layer, typically with linq to sql. Very often i see repositories with simple CRUD methods, and services with more business-specific methods. We can take this blog post as an example. If you look at the interfaces at the bottom (images), he has two repositories and two services. How does one know what to put where? As I said, repositories seems to be more for CRUD-like operations and Services more business oriented.
Tags (comma-separated)
Save Edits
Cancel