I do Access.AsField that way successfully for my Version columns...

2009/7/30 Fost andy <[email protected]>

>
> Hi,
>
> I feel a bit silly for asking this but how do I map a field directly?
>
> In traditional hibernate I might want something like:
>
> <property name="ss" type="String" access="field"/>
>
> How do I achieve this in fluent?
>
> I tried Map(x => x.ss).Access.AsField();
>
> but this throws
> System.InvalidCastException: Unable to cast object of type
> 'System.Reflection.RtFieldInfo' to type
> 'System.Reflection.PropertyInfo'.
>
> On a whim I tried .SetAttribute("access", "field") but got the same
> error.
>
> thanks.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" 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/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to