Skip to content

Instantly share code, notes, and snippets.

@thecodejunkie
Last active December 26, 2015 14:59
Show Gist options
  • Select an option

  • Save thecodejunkie/7169389 to your computer and use it in GitHub Desktop.

Select an option

Save thecodejunkie/7169389 to your computer and use it in GitHub Desktop.
var existingCustomer = session.Query<Customer>()
.FetchMany(c => c.Users)
.FetchMany(c => c.DeliveryAddresses)
.AsEnumerable()
.SingleOrDefault(c => c.CustomerId.Equals(importedCustomer.CustomerId));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment