Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
// 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