Created
July 1, 2016 21:01
-
-
Save JudahGabriel/a67c6a7d6c6bb1d6d844c0706520e198 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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