Derived class with no properties

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
Alladin
Posts: 149
Joined: Mon 27 Nov 2006 16:18
Contact:

Derived class with no properties

Post by Alladin » Tue 15 Jun 2010 20:38

Hello there,

Why can't I define an empty derived class using Entity Designer (LinqConnect mode, TPH mode)?

Thank you

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Mon 21 Jun 2010 17:55

Here is the steps I have followed with the 2.80.130 version of Entity Developer:
1) created new LinqConnect model and drag&drop'ed the Dept table from my Database Explorer. The Dept class was created on the model designer surface;
2) right click on the model surface > Add Class. Class1 was created on the model designer surface;
3) right click on the model surface > Add Inheritance. I have initialized the Inheritance Editor fields in the following way:
Base Class: Dept
Derived Class: Class1
Discriminator Property: Loc
Inheritance Default: Dept
Then pressed OK.

The model is valid. No errors found.

1. What steps should I follow to reproduce the problem?
2. Please describe the problem and the error text.

Post Reply