No, it's not a restriction of NH. On Oct 4, 3:24 pm, Patrick Steele <[email protected]> wrote: > Looking at a local copy of the source code on my machine (from July 2010): > > [AttributeUsage(AttributeTargets.Property), Serializable] > public class HasManyAttribute : RelationAttribute > > Looks like properties only (which is probably a restriction based on > hot NHibernate works). > > --- > Patrick Steelehttp://weblogs.asp.net/psteele > > On Mon, Oct 4, 2010 at 2:47 PM, MWightman <[email protected]> > wrote: > > Getting back to the core of my question. > > > Looking at the documentation the [Field] attribute does not seem cover > > relations and the documentation for > > > [HasMany] and others does not specify Targets. Does [HasMany] > > target both properties and fields? > > > On Oct 4, 7:52 am, MWightman <[email protected]> wrote: > >> I would much prefer to map to private fields not public properties for > >> the sake of encapsulation. Can AR map relations and collections to > >> private fields? > > >> Thanks > > > -- > > 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 > > athttp://groups.google.com/group/castle-project-users?hl=en. > >
-- 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.
