Create a gist now

Instantly share code, notes, and snippets.

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