Another defect with the fluent mapping in the templates

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
strandedpirate
Posts: 21
Joined: Tue 07 Jan 2014 12:38

Another defect with the fluent mapping in the templates

Post by strandedpirate » Sat 11 Jan 2014 21:54

The fluent mapping code has yet another defect for composite keys. The order in which the columns are defined for any given entity's primary composite key must be adhered to by all association mappings. Currently entity composite primary keys are declared in one order and the navigation/associations are then defined with the keys out of order causing failure during runtime.

Get the fix here:
https://gist.github.com/Strandedpirate/8326219

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

Re: Another defect with the fluent mapping in the templates

Post by Shalex » Mon 13 Jan 2014 13:31

Thank you for your report. We will include the fix for DbContext template in the next public build of Entity Developer.

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

Re: Another defect with the fluent mapping in the templates

Post by Shalex » Wed 15 Jan 2014 14:53

The bug with composite keys mapping in the DbContext template is fixed. We will notify you when the corresponding build of Entity Developer is available for download.

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

Re: Another defect with the fluent mapping in the templates

Post by Shalex » Thu 16 Jan 2014 15:11

New build of Entity Developer 5.7.276 is available for download!
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).
For more information, please refer to http://forums.devart.com/viewtopic.php?f=32&t=28723.

Post Reply