http://nhforge.org/doc/nh/en/index.html#mapping-types-anymapping
2009/9/2 nyankov <[email protected]> > > Hi Everyone, > > I need help in following. > > > Let's consider we have classes Photo, Video, Post, and each of this > classes implements ICommentable. > > > public interface ICommentable{ > IList<Comment> Comments { get; set; } > > > > } > > > public class Comment{ > > public ICommentable Target { get; set; } > > > > } > > > My question is how should I map this situation. ManyToOne and > OneToMany seems not work here because Photo, Video, Post are > different > classes and in Comment table should be able some how to mention which > is target. > > Any help will be much appriciated. > > > Thanks. > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
