Hi.
I cannot make the following queryover projection work:
var query = Session.QueryOver<ItemStock>()
.Where(i => i.Sucursal.ID ==
sucursal.ID)
.And(i => i.Cantidad != 0)
.JoinQueryOver<Titulo>(i => i.Titulo)
.Select(
Projections.Property<ItemStock>(s
=> s.Titulo.Descripcion).As("Titulo"),
Projections.Property<ItemStock>(s
=> s.Edicion).As("Edicion")
);
query.List<object[]>();
This is the exception message: {"could not resolve property:
Titulo.Descripcion of: Dominio.Stock.ItemStock"}
I understand the error's cause but I don't know how to resolve it.
I would appreciate any help.
--
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.