OK – I did some reading about repositories, and they basically constitute a way for the domain model to perform CRUD operations – in a language needed by the domain model.
This great document provides an example and some very good explanations on what the difference between an Entity (has an ID), a Value Object (doesn’t have an ID in the model), and Aggregates (things that consist of other things) are.
So today I’ll back up and create a repository that can retrieve the products for a product owner – the IProductRepository
. I am test-driving it forward, of course.
After a while…
Oh yeah – I love the way TDD is leading me forward. Really nice code is emerging.
I didn’t get quite as far as I hoped. I was hoping to be able to code a bit of controller-action (hehe…) today. Well – tomorrow maybe.