diff --git a/Samples/Mvc/Readme.md b/Samples/Mvc/Readme.md index 49fcfe8..4cba417 100644 --- a/Samples/Mvc/Readme.md +++ b/Samples/Mvc/Readme.md @@ -108,27 +108,12 @@ In [Startup.cs](https://github.com/JudahGabriel/RavenDB.Identity/blob/master/Sam ```csharp public void ConfigureServices(IServiceCollection services) { - // Grab our RavenSettings object from appsettings.json. - services.Configure(Configuration.GetSection("RavenSettings")); - ... - // Add an IDocumentStore singleton, with settings pulled from the RavenSettings. - services.AddRavenDbDocStore(); - - // Add a scoped IAsyncDocumentSession. For the sync version, use .AddRavenSession() instead. - // Note: Your code is responsible for calling .SaveChangesAsync() on this. This Sample does so via the RavenSaveChangesAsyncFilter. - services.AddRavenDbAsyncSession(); - - // Use Raven for our users - services.AddRavenDbIdentity(); - - ... - - // Call .SaveChangesAsync() after each action. services - .AddMvc(o => o.Filters.Add()) - .SetCompatibilityVersion(CompatibilityVersion.Version_2_2); + .AddRavenDbDocStore() // Create our IDocumentStore singleton using the database settings in appsettings.json + .AddRavenDbAsyncSession() // Create an Raven IAsyncDocumentSession for every request. + .AddRavenDbIdentity(); // Let Raven store users and roles. } ```