How to get the ForeignKey Name in the FluentMapping Template

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
Schulz_GdvKuhn
Posts: 7
Joined: Fri 01 Jun 2018 10:52

How to get the ForeignKey Name in the FluentMapping Template

Post by Schulz_GdvKuhn » Tue 11 Feb 2020 10:21

Hi everyone,
i use Entity Developer for NH 6.4.719 with NHibernate. In my NHibernateSessionFactory, i have a SchemaUpdate, which should check my Db Schema. It always add existed foreign keys to the schema, because it doesn't recognize the existing ones.

I try to add the foreign key name to the fluent mapping (.ForeignKey("FK_NAME")), but i am unable to find the foreign key name in the template.

Does anybody know how to get the foreign key name in the template or to solve the problem in another way?

Best regards
Michael

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

Re: How to get the ForeignKey Name in the FluentMapping Template

Post by Shalex » Sat 15 Feb 2020 19:01

We have reproduced the issue with creating extra FK by SchemaUpdate basing on fluent mapping generated by the Fluent NHibernate template. We will notify you about the result of our investigation.

Schulz_GdvKuhn
Posts: 7
Joined: Fri 01 Jun 2018 10:52

Re: How to get the ForeignKey Name in the FluentMapping Template

Post by Schulz_GdvKuhn » Fri 13 Mar 2020 16:37

Hello Shalex,
any news on this issue?

Best regards
Michael

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

Re: How to get the ForeignKey Name in the FluentMapping Template

Post by Shalex » Tue 17 Mar 2020 16:29

The investigation is in progress. As soon as we have any results, we will contact you.

Schulz_GdvKuhn
Posts: 7
Joined: Fri 01 Jun 2018 10:52

Re: How to get the ForeignKey Name in the FluentMapping Template

Post by Schulz_GdvKuhn » Fri 12 Jun 2020 10:14

Hello Shalex,
any news on this issue after 4 months?

Best regards
Michael

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

Re: How to get the ForeignKey Name in the FluentMapping Template

Post by Shalex » Mon 20 Jul 2020 19:38

There is no timeframe at the moment. We will notify you about the progress.

Post Reply