Page 1 of 1

Associations naming not the same as the fk constraint name

Posted: Fri 27 Aug 2010 11:52
by MrRock
Hello,
I have a problems with the naming of the associations when using dotconnect for Oracle (v5.70.152.0) to create an EF model...

It seems that the names of these associations are not the actual names of the FK constraints in DB, but just auto-incremented numbers.

Can I get the association names to be the same as names of FK constraints, or I need to do this manually?

Thanks.

Posted: Mon 30 Aug 2010 16:36
by Shalex
We have reproduced this issue. It persists only in VS 2010 and only with MS Entity Data Model. I will post here when the problem is fixed. As a workaround, please use Entity Developer (the Devart Entity Model template) or change the names of associations manually.

Posted: Tue 31 Aug 2010 13:42
by MrRock
Hi Shalex, tnx for your response.
I have already tried this with Entity Developer and haven't succeded. Is there a way to force Entity Developer to name associations like FK Constraints?

Posted: Tue 31 Aug 2010 15:13
by Shalex
MrRock wrote:I have already tried this with Entity Developer and haven't succeded. Is there a way to force Entity Developer to name associations like FK Constraints?
Do you mean that there is no way in Entity Developer to name association like FK Constraints or naming in Entity Developer is like in VS2010 at the moment (C1, C141, etc)?

We have fixed the problem in VS2010. Look forward to the next build of dotConnect for Oracle. I will post here when it is available for download.

Posted: Wed 01 Sep 2010 07:13
by MrRock
No, Entity Developer doesn't name them "C1" etc, but it doesn't name them as FK names too, it has naming convention like "Object1Object1".

Anyway, glad to hear it is fixed now, looking forward for a new version :)

Posted: Wed 01 Sep 2010 16:29
by Shalex
We will implement an option in Entity Developer to name associations as the names of FK Constraints and notify you when it is available.

Posted: Thu 02 Sep 2010 07:18
by MrRock
Great news :)
Thanks

Posted: Fri 24 Sep 2010 14:32
by Shalex
New build of dotConnect for Oracle 5.70.170 is available for download now!
It can be downloaded from http://www.devart.com/dotconnect/oracle/download.html (trial version) or from Registered Users' Area (for users with valid subscription only).
For more information, please refer to http://www.devart.com/forums/viewtopic.php?t=19068 .

Re: Associations naming not the same as the fk constraint na

Posted: Mon 21 May 2012 07:37
by Shalex
MrRock wrote:Is there a way to force Entity Developer to name associations like FK Constraints?
The behaviour will be changed starting from the next build of dotConnect for Oracle: the association names will be generated basing on the database FK names when using Database First approach. We will notify you when the corresponding build is available for download.

Re: Associations naming not the same as the fk constraint na

Posted: Wed 23 May 2012 15:55
by Shalex
New version of dotConnect for Oracle 7.0 is released!
It can be downloaded from http://www.devart.com/dotconnect/oracle/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=1&t=24180 .