Skip to content

Instantly share code, notes, and snippets.

@JeremySkinner
Created February 25, 2010 15:32
Show Gist options
  • Select an option

  • Save JeremySkinner/314632 to your computer and use it in GitHub Desktop.

Select an option

Save JeremySkinner/314632 to your computer and use it in GitHub Desktop.
var query = from c in linq.Customers
select c;
query = query.WithPath(path =>
path.Prefetch<Order>(c => c.Orders)
.SubPath(subpath => subpath.Prefetch(o => o.Product));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment