Page 1 of 1
Table Per Hierarchy to Join bug when importing and updating the database.
Posted: Tue 01 Apr 2014 14:39
by ruda
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.

Re: Table Per Hierarchy to Join bug when importing and updating the database.
Posted: Thu 03 Apr 2014 16:55
by Shalex
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
Re: Table Per Hierarchy to Join bug when importing and updating the database.
Posted: Tue 08 Apr 2014 13:45
by ruda
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.
Re: Table Per Hierarchy to Join bug when importing and updating the database.
Posted: Thu 10 Apr 2014 17:07
by Shalex
Thank you for your report. We have reproduced the problem and are investigating it.
Re: Table Per Hierarchy to Join bug when importing and updating the database.
Posted: Thu 10 Apr 2014 17:58
by ruda
Thank you for the effort.
Re: Table Per Hierarchy to Join bug when importing and updating the database.
Posted: Fri 25 Apr 2014 12:20
by Shalex
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).