Sorry if this is the wrong place to ask, I've been looking all around!
I was wondering if there is a roadmap for the .Linq project, and if
so, if it included a feature I've been thinking about - perhaps its
already there and I just haven't looked properly...
The thing I'm thinking is that it would be very cool if I could write
class User{
public virtual IQueryableSet<Meeting> Meeting {get; private set;}
}
class Meeting{
public virtual IQueryableSet<User> Attendees {get; private set;}
}
and have these set up in the mappings
var peopleIWillBeMeeting = user.Meetings.Where(m => m.StartDate >=
DateTime.Now).SelectMany(m => m.Attendees).Where(a => a.Id !=
user.Id);
and this would be pulled in as a single SQL expression, rather than
lazy loading the Meeting and Attendees collections. I imagine this is
part of the plan, but all the examples I seen are for ad-hoc queries,
not for defining mappings.
thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"NHibernate Contrib - Development Group" 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.ar/group/nhcdevs?hl=en
-~----------~----~----~----~------~----~------~--~---