Skip to content

Instantly share code, notes, and snippets.

@JudahGabriel
Created July 1, 2016 21:00
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/9b763aeaf2f840882cb524aad5984561 to your computer and use it in GitHub Desktop.
Save JudahGabriel/9b763aeaf2f840882cb524aad5984561 to your computer and use it in GitHub Desktop.
// Query for all recipes and transform them into RecipeViewModels.
var allRecipeViewModels = ravenSession.Query<Recipe>()
.TransformWith<RecipeViewModelTransformer, RecipeViewModel>()
.ToList();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment