Are services an implementation of the repository pattern?

Topics: Customizing Orchard, Writing modules
Developer
Aug 17, 2011 at 5:13 PM

Hi all!

Ami I correctly assuming that services (e.g. Orchard.Comments.Services.CommentService) are a kind of implementation of the repository design pattern?

Thanks in advance!

Coordinator
Aug 17, 2011 at 6:30 PM

You could, but it’s not the intent. The real Repository pattern exists in IRepository. It happens this service might just expose them, but it could expose more.

Developer
Aug 22, 2011 at 2:30 PM

Thank you for the quick answer! Orchard's code base is a really massive piece that takes time to learn :-).