can you be more specific - like, what projections do you wanna add in
addition to the regular properties of Foo and why aren't you mapping those
additional properties?

On Tue, Sep 14, 2010 at 5:35 PM, void* <[email protected]> wrote:

> Howdy y'all,
>
> is any thing like this possible:
> I want to project the result of a query into another class together
> with additional informations.
> Assuming Bar has a property fff of type Foo:
>
> DetachedCriteria
>        .For<Foo>( "f" )
>        .SetProjection
>        (
>                Projections.ProjectionList()
>                        .Add
>                        (
>                                Projections.Property( "f" ), "fff" // ain't
> working
>                        )
>                        .Add( ... ) // add more stuff to Bar
>        )
>        .SetResultTransformer( Transformers.AliasToBean<Bar>() );
>
> or like this
>
> DetachedCriteria
>        .For<Foo>( "f" )
>        .SetProjection
>        (
>                Projections.ProjectionList()
>                        .Add
>                        (
>                                Projections.This(), "fff"  // pseudo-code
>                        )
>                        //.Add( ... )
>        )
>        .SetResultTransformer( Transformers.AliasToBean<Bar>() );
>
> Best regards,
> void*
>
> --
> 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]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>

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