diff --git a/src/Volo.Abp.Identity.Web/Navigation/AbpIdentityWebMainMenuContributor.cs b/src/Volo.Abp.Identity.Web/Navigation/AbpIdentityWebMainMenuContributor.cs index d7ce55226f..2f0fb56892 100644 --- a/src/Volo.Abp.Identity.Web/Navigation/AbpIdentityWebMainMenuContributor.cs +++ b/src/Volo.Abp.Identity.Web/Navigation/AbpIdentityWebMainMenuContributor.cs @@ -16,6 +16,7 @@ namespace Volo.Abp.Identity.Web.Navigation var permissionChecker = context.ServiceProvider.GetRequiredService(); + //TODO: We should not add this if none of the children available. Alternatively, we can handle it on menu rendering (would be simpler). var identityMenuItem = new ApplicationMenuItem("Identity", "Identity"); context.Menu.AddItem(identityMenuItem); diff --git a/src/Volo.Abp.MemoryDb/Volo/Abp/Domain/Repositories/MemoryDb/MemoryDatabase.cs b/src/Volo.Abp.MemoryDb/Volo/Abp/Domain/Repositories/MemoryDb/MemoryDatabase.cs index 212c151087..be16beef85 100644 --- a/src/Volo.Abp.MemoryDb/Volo/Abp/Domain/Repositories/MemoryDb/MemoryDatabase.cs +++ b/src/Volo.Abp.MemoryDb/Volo/Abp/Domain/Repositories/MemoryDb/MemoryDatabase.cs @@ -8,12 +8,12 @@ namespace Volo.Abp.Domain.Repositories.MemoryDb { private readonly ConcurrentDictionary _sets; - private readonly ConcurrentDictionary _idGenerators; + private readonly ConcurrentDictionary _entityIdGenerators; public MemoryDatabase() { _sets = new ConcurrentDictionary(); - _idGenerators = new ConcurrentDictionary(); + _entityIdGenerators = new ConcurrentDictionary(); } public List Collection() @@ -23,7 +23,7 @@ namespace Volo.Abp.Domain.Repositories.MemoryDb public TKey GenerateNextId() { - return _idGenerators + return _entityIdGenerators .GetOrAdd(typeof(TEntity), () => new InMemoryIdGenerator()) .GenerateNext(); }