Figured it out - from reading code here:
Vehicle vehicleAlias = null;
var sq = NHibernate.Criterion.QueryOver.Of<VehicleGroup>()
.Where(vg => vg.Id == groupId.Value)
.JoinAlias(vg => vg.Vehicles, () => vehicleAlias)
.Select(vg => vehicleAlias.Id)
;
query = Session.QueryOver<T>()
.WithSubquery.WhereProperty(t => t.Vehicle.Id).In(sq);
--
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.