How to reference parent entity in the same table with fluent nhibernate auto mappings?


+2 votes
asked Feb 4, 2016 by rollinsoni (1,020 points)
I am trying to use FluentNHibernate AutoMappings to create entity with reference to its parent. I was able to do this with help of ClassMap<>, but now I want to move everything to AutoMappings. This post discusses something similar

4 Answers

+1 vote
answered Feb 29, 2016 by Fub8223rames (840 points)

This is a really excellent reference.
commented Feb 29, 2016 by womack (340 points)
Workaround in more detail here
commented Mar 1, 2016 by Vf5745Hi (440 points)
Answer moved from this question on request
commented Mar 1, 2016 by jvy6300e (580 points)
I do not know if you have interest on this question any more
+1 vote
answered Mar 2, 2016 by gur_556 (430 points)
–1 vote
answered Mar 3, 2016 by Abg_5979 (1,350 points)
This subject is too big to answer in a question like this
Anyway the link is Inheritance mapping strategies in Fluent Nhibernate ...
0 votes
answered Mar 26, 2016 by Zl966Cogen (180 points)
I just came to this page in search of an answer to the same question
And the Visual NHibernate - Version History does not provide much useful information about them

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!







...