properties, fields, automatic, read only, etc. if you can code it you
can map it. There are three configuration options:
1. HBM (xml) resources
2. ConfORM
3. Fluent NH

Fluent NH is a separate project from NH very popular among R# fans and
greenfield projects using NH 2.0. I think ConfORM is part of NH 3.0.
otherwise it's an addon to NH 3. its very similar to Fluent NH, but
integration is tigher. the primary developer of the project is also
the main NH contributor. HBM has been around since day 1 and gives you
the most fine grained control over the mappings. for more assistance
check out nhforge.org and the nhusers group on google.

There was a project at one point call NHAttributeMappings, but that
project is long dead. That is basically what AR is.

On Oct 4, 3:31 pm, Patrick Steele <[email protected]> wrote:
> Oh, cool.  NH can map directly to fields as well as properties?
>
> ---
> Patrick Steelehttp://weblogs.asp.net/psteele
>
> On Mon, Oct 4, 2010 at 3:26 PM, Jason Meckley <[email protected]> wrote:
> > 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 
> > 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.

Reply via email to