Hi,

Thanks for the response.

I also looked at <any> mapping

but for it I need to know each type which will be stored there.

Is there a way to map interface with <any>?



On Sep 3, 4:06 pm, Markus Zywitza <[email protected]> wrote:
> 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.- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to