Attribute mapping multiple inheritance

Discussion of open issues, suggestions and bugs regarding EntityDAC
Post Reply
rogerscruton.learner
Posts: 2
Joined: Wed 26 Dec 2018 21:59

Attribute mapping multiple inheritance

Post by rogerscruton.learner » Wed 02 Jan 2019 22:17

Is there a way to build a Table-per-Type multiple inheritance (role like relationship) through attribute-mapping objects approach?

For example, let's suppose we have a base class TEmployee and subclasses which corresponds to two roles: TManager and TProjectLeader. One employee can be both an manager and a project leader or can be only a manager or can be just an employee. If an employee is deleted, related records in manager and project leader tables must be deleted. If a record of the role tables is deleted, the employee record must be preserved.

Regards

Post Reply