XPO is an O / R mapping framework for DEV, although business software, non-open source, but provides source code.
Three introduction articles of blog circular arming:
XPO learning
Summary of XPO Learning II - Attribute
XPO learning three - condition object