Table Per Hierarchy to Join bug when importing and updating the database.

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
ruda
Posts: 4
Joined: Sat 29 Mar 2014 17:10

Table Per Hierarchy to Join bug when importing and updating the database.

Post by ruda » Tue 01 Apr 2014 14:39

I'm trying to use Table Per Hierarchy with discriminating with sub class with a join.

Example: http://nhforge.org/doc/nh/en/index.html ... criminator

Screen error when trying to update later from the database.
Image

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

Re: Table Per Hierarchy to Join bug when importing and updating the database.

Post by Shalex » Thu 03 Apr 2014 16:55

We cannot reproduce the problem at the moment. Please send us a test model and specify the following information:
1) the steps we should follow with your model to reproduce the issue
2) the text of the error in English
3) the exact (x.xx.xxx) version of your Entity Developer

ruda
Posts: 4
Joined: Sat 29 Mar 2014 17:10

Re: Table Per Hierarchy to Join bug when importing and updating the database.

Post by ruda » Tue 08 Apr 2014 13:45

Steps to Reproduce:

Create a new model, the type NHibernate;
Add a class with any property ('ll call Class1);
Add another class (Class2) inheriting from Class1;
Place in Class1 and Class2 the discriminator;
Add to Class2 Join one with some table;
Place in the propridades Class2 Join the created anteriorly;
Try an Update Model From Database;

Occurs the error: "The given key was not present in the dictionary."

Version: 5.7.276

Is modeled with the problem:
https://mega.co.nz/#!FURyFZ7Q!sXcGiBn2X ... wzBaZyDdAo

The sample was also sent by email.

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

Re: Table Per Hierarchy to Join bug when importing and updating the database.

Post by Shalex » Thu 10 Apr 2014 17:07

Thank you for your report. We have reproduced the problem and are investigating it.

ruda
Posts: 4
Joined: Sat 29 Mar 2014 17:10

Re: Table Per Hierarchy to Join bug when importing and updating the database.

Post by ruda » Thu 10 Apr 2014 17:58

Thank you for the effort.

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

Re: Table Per Hierarchy to Join bug when importing and updating the database.

Post by Shalex » Fri 25 Apr 2014 12:20

The bug with generating "The given key was not present in the dictionary" error in the Update Model From Database wizard is fixed in the new build of Entity Developer 5.7.342: http://forums.devart.com/viewtopic.php?f=32&t=29430.

It can be downloaded from http://www.devart.com/entitydeveloper/download.html (trial version) or from Registered Users' Area (for users with active subscription only).

Post Reply