[fluent-nhib] Re: Access.None() is adding a column name

2011-08-23 Thread James Gregory
Hmm, so this isn't an FNH issue?

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/fluent-nhibernate/-/iYGwMhsdvyMJ.
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.



[fluent-nhib] Re: Access.None() is adding a column name

2011-08-21 Thread Chris Small
It turns out NHibernate's SQL alias generation (AliasToBean) adds the column
names regardless of whether the  tag is there or not - it ignores
Access.None.



On Sun, Aug 21, 2011 at 8:12 PM, Chris S.  wrote:

> I'm trying to add a generated property (for a SQL projection) using:
>
> Map(x => x.LastUpdated).Access.None()
>
> My problem is Fluent NHibernate is mapping this as:
>
> type="System.Nullable`1[[System.DateTime, mscorlib, Version=2.0.0.0,
> Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib,
> Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
>  
>
>
> i.e. It's add a column name when it shouldn't have one for my usage. I
> don't want the column name as NHibernate then puts it into SQL queries
> when you use {alias.*}.
>
> Is there an easy work around?
>
> Thanks,
> Chris

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