From ad0aa38c9c0d212f1ac44d2f4be58063a9778f53 Mon Sep 17 00:00:00 2001 From: George Drak Date: Mon, 10 Apr 2023 17:31:47 +0500 Subject: [PATCH] feat(inmemorydb): support default options --- src/Sitko.Core.Db.InMemory/InMemoryDatabaseModule.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sitko.Core.Db.InMemory/InMemoryDatabaseModule.cs b/src/Sitko.Core.Db.InMemory/InMemoryDatabaseModule.cs index a624753c3..0f7fd8e7d 100644 --- a/src/Sitko.Core.Db.InMemory/InMemoryDatabaseModule.cs +++ b/src/Sitko.Core.Db.InMemory/InMemoryDatabaseModule.cs @@ -10,6 +10,7 @@ public class where TDbContext : DbContext { public override string OptionsKey => $"Db:InMemory:{typeof(TDbContext).Name}"; + public override string[] OptionKeys => new[] { "Db:InMemory:Default", OptionsKey }; public override void ConfigureServices(IApplicationContext applicationContext, IServiceCollection services, InMemoryDatabaseModuleOptions startupOptions) @@ -48,4 +49,3 @@ private void ConfigureInMemory(DbContextOptionsBuilder options, applicationContext); } } -