Fields aren't supported currently, easiest fix is to make it a private
autoproperty.
private IList<AccountType> accountType { get; set; }

On Fri, Mar 13, 2009 at 9:29 PM, epitka <exptrade2...@yahoo.com> wrote:

>
> Hi, I am trying to map private field IList<AccountType> _accountType
> like this
>
> HasMany(x => x._accountType).Access.AsField();
>
> but receiving an error
>
> {"Unable to cast object of type 'System.Reflection.RtFieldInfo' to
> type 'System.Reflection.PropertyInfo'."}
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to