From 663c3fb7b754d0af23d45b7aee1f5f588db488c3 Mon Sep 17 00:00:00 2001 From: Judah Himango CW Date: Fri, 5 Apr 2019 17:12:19 -0500 Subject: [PATCH] Updated RavenDB.DependencyInjection for advanced configuration scenarios. --- RavenDB.Identity/RavenDB.Identity.csproj | 6 +++--- Readme.md | 11 +++++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/RavenDB.Identity/RavenDB.Identity.csproj b/RavenDB.Identity/RavenDB.Identity.csproj index efb6e5d..8061dac 100644 --- a/RavenDB.Identity/RavenDB.Identity.csproj +++ b/RavenDB.Identity/RavenDB.Identity.csproj @@ -19,17 +19,17 @@ false false false - 6.0.2 + 6.0.3 False Raven.Identity - Fixed user deletion that failed to delete compare/exchange key. + Updated RavenDB.DependencyInjection lib to enable advanced configuration scenarios. - + diff --git a/Readme.md b/Readme.md index 140e2fd..bfc5eeb 100644 --- a/Readme.md +++ b/Readme.md @@ -51,6 +51,17 @@ public void ConfigureServices(IServiceCollection services) 4. In your controller actions, [call .SaveChangesAsync() when you're done making changes](https://github.com/JudahGabriel/RavenDB.Identity/blob/master/Sample/Filters/RavenSaveChangesAsyncFilter.cs#L35). Typically this is done via a RavenController base class for MVC/WebAPI projects or via an action filter. See our sample [RavenSaveChangesAsyncFilter.cs](https://github.com/JudahGabriel/RavenDB.Identity/blob/master/Sample/Filters/RavenSaveChangesAsyncFilter.cs). +## Modifying RavenDB conventions + +To modify RavenDB conventions, you can use the `services.AddRavenDbDocStore(options)` overload: + +```csharp +services.AddRavenDbDocStore(options => +{ + options.BeforeInitializeDocStore = docStore => docStore.Conventions.IdentityPartsSeparator = "-"; +}) +``` + ## Updating From Old Version of RavenDB.Identity Using an old version of RavenDB.Identity and want to upgrade to the latest? You need to call the `MigrateToV6` method: