I think the [HasManyToAny] was exactly what I was looking for. Thank you for the replies.
On Aug 11, 12:24 am, Markus Zywitza <[email protected]> wrote: > Hi Jake, > > 2009/8/10 JakeS <[email protected]> > > > [ActiveRecord] > > public class WhiteBoard : ModelBase<WhiteBoard>, IRecentUpdated > > > [ActiveRecord] > > public class Discussion: ModelBase<Discussion>, IRecentUpdated > > You can get around it completely, if you use generic interfaces: > > public interface IRecentUpdated<T> > { > IList<T> RecentItems{get;} > > } > > [ActiveRecord] > public class WhiteBoard : ModelBase<WhiteBoard>, IRecentUpdated<Discussion> > > [ActiveRecord] > public class Discussion: ModelBase<Discussion>, IRecentUpdated<Post>, > IRecentUpdated<Comment> > > In parents, you the have: > > And then a "parent" class with something like this: > private IList<Discussion> _recentItems; > [HasAndBelongsToMany(...)] > public IList<Discussion> RecentItems {...} > > -Markus --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" 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/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
