A friend of mine has just send me this great post about designing Domain-Driven Data Access Layer.
Other then the goals themself:
- The DAL should completely hide the underlying data access technology, whether it be an ORM tool like NHibernate, hand-generated inline SQL, calls to stored procedures, or anything else.
- The DAL should not place any significant constraints on the design of the domain model.
- The entire layer should be replaceable with minimal impact (or minimal risk for you PM folks).
this post presents us with this great TDD experience. Please don't miss these.
No comments:
Post a Comment