Skip to content

Instantly share code, notes, and snippets.

@JudahGabriel
Last active July 1, 2016 20:59
// Query for the honey glazed salmon recipe
// and transform it into a RecipeViewModel.
var recipeViewModel = ravenSession.Query<Recipe>()
.TransformWith<RecipeViewModelTransformer, RecipeViewModel>()
.Where(r => r.Name == "Sweet honey glazed salmon")
.First();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment