How to get the ForeignKey Name in the FluentMapping Template
Posted: 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
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