This project is read-only.

Are services an implementation of the repository pattern?

Topics: Customizing Orchard, Writing modules
Aug 17, 2011 at 6: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!

Aug 17, 2011 at 7: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.

Aug 22, 2011 at 3:30 PM

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