Here's my code:
var sq = NHibernate.Criterion.QueryOver.Of<VehicleGroup>()
.Where(vg => vg.Id == groupId.Value)
.JoinQueryOver(vg => vg.Vehicles)
.Select(vg => vg.Vehicles);
var results= Session.QueryOver<T>()
.WithSubquery.WhereProperty(t => t.Vehicle.Id).In(sq);
My problem is that "sq" returns a list of vehicles and I just want the
vehicle IDs. How do I do that?
Thanks
--
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.