I have the table A like below:
Table A
-----------------------
Id
Desc
ReferenceType
TargetId
...
Depend on the value of reference type, eg ‘B’ or ‘C’, target ID reference to table B or table C.
Have anyone solve this problem with NHibernate.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You are looking for the mapping
<any>have a look at this blog post.Or in this Fabio Maulo Knol look for 5.2.4. Any type mappings