You should create an intermediate class that represents the Many-to-many relationship (since a many-to-many is just two one-to-many relationships anyway), for example:
TStudentRoom = class
FStudent: TStudent;
FRoom: TRoom;
You should create an intermediate class that represents the Many-to-many relationship (since a many-to-many is just two one-to-many relationships anyway), for example: