Created
December 7, 2012 14:30
-
-
Save bradoyler/4233590 to your computer and use it in GitHub Desktop.
Simple example Controller for RavenDB using StructureMap
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
private readonly IDocumentSession session; | |
public HomeController(IDocumentSession s) | |
{ | |
session = s; | |
} | |
public ActionResult Index() | |
{ | |
var tempObject = Tuple.Create("Hello World!", DateTime.Now); | |
session.Store(tempObject); | |
session.SaveChanges(); | |
return View(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment