I have been using this since we upgraded to .Net 3.5 & NHibernate 2.0,
and it works great. Files are so much cleaner now.

On Apr 12, 10:08 am, Fabio Maulo <[email protected]> wrote:
> Yes you can and you can even use 'backfield' as access-strategy (for example
> when you have private accessor for setter).
>
> 2009/4/9 FrancK <[email protected]>
>
>
>
>
>
> > Hi all,
> > Can I use autoproperties with NHibernate especially with simple
> > attributes (string, int), object references and collections ?
>
> > ex:
> > public virtual string CustomerId { get; set; }
> > public virtual string Label { get; set; }
> > public virtual Address { get; set;}
> > public virtual ISet Orders { get; set; }
>
> > Because I get the following error:
> > NHibernate.PropertyNotFoundException: Could not find a getter for
> > property 'Address' in class 'Modele.Address'
>
> --
> 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