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].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.