Skip to content

Instantly share code, notes, and snippets.

@sniffdk
Created February 26, 2012 20:39
Show Gist options
  • Save sniffdk/1918879 to your computer and use it in GitHub Desktop.
Save sniffdk/1918879 to your computer and use it in GitHub Desktop.
x.For<IDocumentStore>().Singleton().Use(context =>
{
var documentStore = new DocumentStore
{
ConnectionStringName = "RavenDB",
Conventions = { IdentityPartsSeparator = "-" }
}.Initialize();
IndexCreation.CreateIndexes(typeof(HousesMinMaxIndex).Assembly, documentStore);
// Profiling
//Raven.Client.MvcIntegration.RavenProfiler.InitializeFor(documentStore);
return documentStore;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment