Um, that's the *opposite* of encapsulation. By giving access to private fields, anyone can change the value of the field -- so the access to the fields is no longer encapsulated to just your getters/setters.
--- Patrick Steele http://weblogs.asp.net/psteele On Mon, Oct 4, 2010 at 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 at > http://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.
