UNDERSTANDING HOW RELATIONSHIPS WORK

relationship_office_team_work-512Relationships are created by adding other objects as properties on your class. This, then inherently, links the two objects together when set. To achieve one-to-many structures is then exceptionally simple and can be improved upon, by extending the queries to filter or sort the results in different ways.