I have a problem with relation and Discriminator in our database structure. I need to do something like that: | Id| RefId | RefTypeId| Name |- |-| -| -| | 1 | 1| Dog| Luke|