Hi!
I wrapped the ISession interface to an IRepository<T> (in a little more
complex way), now I've the problem to expose the eager loading feature
so I want to have this:
IRepository<T> : IEagerLoading<T>
...
IEagerLoading<T> : IQueryable<T>
{
IEagerLoading<T> Include<TRelated>(Expression<Func<T, TRelated>> path);
}
On the IRepository<T> I want to write customerRepository.Include(x =>
x.Addresses).Include(x => x.MainAddress);
Do you know a simple way to do that?
Thanks,
Matteo.
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/nhusers/-/030pE7I4fScJ.
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.