Page 1 of 1

How to get the ForeignKey Name in the FluentMapping Template

Posted: Tue 11 Feb 2020 10:21
by Schulz_GdvKuhn
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

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

Posted: Sat 15 Feb 2020 19:01
by Shalex
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.

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

Posted: Fri 13 Mar 2020 16:37
by Schulz_GdvKuhn
Hello Shalex,
any news on this issue?

Best regards
Michael

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

Posted: Tue 17 Mar 2020 16:29
by Shalex
The investigation is in progress. As soon as we have any results, we will contact you.

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

Posted: Fri 12 Jun 2020 10:14
by Schulz_GdvKuhn
Hello Shalex,
any news on this issue after 4 months?

Best regards
Michael

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

Posted: Mon 20 Jul 2020 19:38
by Shalex
There is no timeframe at the moment. We will notify you about the progress.