Inheritance per Hierarchy

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
Posts: 1
Joined: Tue 07 Dec 2010 18:24

Inheritance per Hierarchy

Post by mhsiung » Tue 07 Dec 2010 18:38

My database table has a column EXECUTION_LEVEL defined as NUMBER. When I add the mapping condition EXECUTION_LEVEL = 2, I get an error

Problem in mapping fragments starting at line ...:condition member 'JOB_ACTIVITIES.EXECUTION_LEVEL' with a condition other than 'IsNull=False' is mapped. Either remove the condition on JOB_ACTIVITIES.EXECUTION_LEVEL or remove it from the mapping.

How do I resolve this?

Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Wed 08 Dec 2010 16:02

The first solution is to remove the discriminator property from the conceptual entity, leaving it in mapping for inheritance.
In case you need the conceptual property you can try something like this workaround.

Post Reply