Replies: 1 comment
-
Issue was in incorrect mapping. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I have a question regarding NHibernate and .Net 8 compatibility.
We have a database with composite keys, NHibernate 5.5.2 and .Net Framework 4.8 and mapping works correctly.
When we tried to switch to .Net 8, with same Nhibernate version and same mapping, Nhibernate stops working correctly.
What could be an issue with .Net 8?
Foreign Key constrain exceptions are thrown. For example, if we have defined FK in database, this works correctly with .Net Framework 4.8
Same mapping throws an FK exception in .Net 8, and what is even more weird that some of the exceptions could be fixed with just reordering columns, but only in mapping, not in database FK. Note that FK columns order in database is different than columns order in mapping.
Beta Was this translation helpful? Give feedback.
All reactions