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

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Attribute mapping multiple inheritance

Post by MaximG » Fri 10 May 2019 14:11

Our product works exactly according to the description that you have sent us. If you encounter any difficulties with implenting the necessary behavior, please send us additional infromation, e.g. the model and code sample you are using via e-support form: https://www.devart.com/company/contactform.html

Post Reply