Wednesday, 4 November 2015

SandstoneDB and ActiveRecord

Active records should the be classes you want to directly query, i.e. classes which are whole objects and not just some small subpart of another object.

both Project and Invoice active records, they are clearly self contained. A LineItem is not, it means nothing outside the context of its Invoice, so it's just a regular object.

No comments:

Post a Comment