You could try something like this:
var results = session.CreateCriteria<UserGuid>()
.SetProjection(Projections.Property("Guid"))
.List<Guid>();
Best regards,
Søren Gørtz Olesen
On 12 Sep., 22:31, bdaniel7 <[email protected]> wrote:
> public class UserGuid
> {
> public Guid Guid { get; set; }
>
> }
>
> .SetProjection( Projections.ProjectionList().Add( Projections.Property(
> "UserId" ),
> "Guid" ) )
> .SetResultTransformer( Transformers.AliasToBean<UserGuid>() )
>
> Is is possible to create a Projection/Transformer to return a
> primitive type, in this case a Guid, instead of a class?
> So that I don't have to create a class.
>
> Thank you,
> Daniel
--
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.