Created
November 21, 2011 12:10
-
-
Save andreasohlund/1382456 to your computer and use it in GitHub Desktop.
UoW.RavenConfig
This file contains hidden or 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 store = new DocumentStore { Url = "http://localhost:8080" }; | |
| store.Initialize(); | |
| ObjectFactory.Configure(c => | |
| { | |
| c.For<IDocumentStore>() | |
| .Singleton() | |
| .Use(store); | |
| c.For<IDocumentSession>() | |
| .Use(ctx => ctx.GetInstance<IDocumentStore>() | |
| .OpenSession()); | |
| c.For<IManageUnitsOfWork>() | |
| .Use<RavenUnitOfWork>(); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment