Entity Framework Polymorphism
Posted
by Chubbs
on Stack Overflow
See other posts from Stack Overflow
or by Chubbs
Published on 2010-04-09T12:37:49Z
Indexed on
2010/04/09
12:43 UTC
Read the original article
Hit count: 323
Hey guys,
I wanted some help with trying to implement a simple polymorphic relationship using Entity Framework.
An example of a relationship I would like to implement:
Comment table
- ItemType ('Video', 'User')
- ItemID
- Body
Video has many Comments
User has many Comments
No idea the best way to do this, I come from a Ruby on Rails way of thinking.
© Stack Overflow or respective owner