http://www.nhforge.org/doc/nh/en/index.html
5.1.9. property

<property ...
 access="field|property|ClassName"
...
access (optional - defaults to property): The strategy NHibernate
should use for accessing the property value.

The access attribute lets you control how NHibernate will access the
value of the property at runtime. The value of the access attribute
should be text formatted as access-strategy.naming-strategy. The
.naming-strategy is not always required.





On Wed, Oct 8, 2008 at 2:12 PM, Fabio Maulo <[EMAIL PROTECTED]> wrote:
> 2008/10/8 MAMMON <[EMAIL PROTECTED]>
>>
>> One other question -- let's say I want some property in my data access
>> layer to be read-only for consumers of the DAL.  Do I need to have
>> setters on my properties for NH to work correctly with lazy loading
>> and proxies, etc?  If so, I guess I can just make the setters
>> protected.
>
> As I said you yesterday: you can use access field
> from the other post:
> "Who are using access trough fields don't have that problem (and NH have a
> lot of access strategy)"
> --
> Fabio Maulo
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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