Consider the following relationship between Item and ItemContent.
Item
ItemId
ItemName
ItemContent
ContentId
ItemId
Content
ContentType
What I would like to do is have a Content
property on Item that JOINS the Content column from ItemContent based on ContentType that is provided in the mapping itself or injected in some other way.
What is the best way to accomplish this? What is the simplest way to accomplish this?