Skip to content

Instantly share code, notes, and snippets.

@JudahGabriel
Created July 1, 2016 21:01
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/a67c6a7d6c6bb1d6d844c0706520e198 to your computer and use it in GitHub Desktop.
Save JudahGabriel/a67c6a7d6c6bb1d6d844c0706520e198 to your computer and use it in GitHub Desktop.
var recipeViewModel = new RecipeViewModel
{
Name = "Sweet honey glazed salmon",
RecipeId = "recipes/1",
PictureUrl = "http://tastyrecipesyum.com/recipes/1/profile.jpg",
Categories = new List<string> { "salmon", "fish", "seafood", "healthy" },
ChefName = "Swei D. Sheff",
ChefEmail = "borkbork@bork.com",
Comments = new List<Comment> { new Comment { Name = "Dee Liteful", Content = "I really enjoyed this dish!" } },
Ingredients = new List<Ingredient> { new Ingredient { Name = "salmon fillet", Amount = "5 ounce" } }
};
// Raven allows us to store complex objects, even whole view models.
ravenSession.Store(recipeViewModel);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment