Skip to content

Instantly share code, notes, and snippets.

@JudahGabriel
Created July 1, 2016 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JudahGabriel/74f0d52035c79fd439e250d273143b41 to your computer and use it in GitHub Desktop.
Save JudahGabriel/74f0d52035c79fd439e250d273143b41 to your computer and use it in GitHub Desktop.
// Load up the RecipeViewModels stored in our index.
var recipeViewModel = ravenSession.Query<RecipeViewModel, RecipeViewModelIndex>()
.Where(r => r.Name == "Sweet honey glazed salmon")
.ProjectFromIndexFieldsInto<RecipeViewModel>()
.First();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment