Skip to content

Commit

Permalink
feat(inmemorydb): support default options
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicGD committed Apr 10, 2023
1 parent 07427e2 commit ad0aa38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sitko.Core.Db.InMemory/InMemoryDatabaseModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<TDbContext> startupOptions)
Expand Down Expand Up @@ -48,4 +49,3 @@ private void ConfigureInMemory(DbContextOptionsBuilder options,
applicationContext);
}
}

0 comments on commit ad0aa38

Please sign in to comment.