Is Address a Type?
Then a PropertyName is missing....

Try it like this!
public virtual Address AnAddress{ get; set;}



On 9 Apr., 13:04, FrancK <[email protected]> wrote:
> 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'
--~--~---------~--~----~------------~-------~--~----~
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