diff --git a/src/Volo.Abp.EntityFrameworkCore/Microsoft/Extensions/DependencyInjection/AbpEfCoreServiceCollectionExtensions.cs b/src/Volo.Abp.EntityFrameworkCore/Microsoft/Extensions/DependencyInjection/AbpEfCoreServiceCollectionExtensions.cs index da29e6487c..06a09c8075 100644 --- a/src/Volo.Abp.EntityFrameworkCore/Microsoft/Extensions/DependencyInjection/AbpEfCoreServiceCollectionExtensions.cs +++ b/src/Volo.Abp.EntityFrameworkCore/Microsoft/Extensions/DependencyInjection/AbpEfCoreServiceCollectionExtensions.cs @@ -10,9 +10,7 @@ namespace Microsoft.Extensions.DependencyInjection public static IServiceCollection AddAbpDbContext(this IServiceCollection services, Action optionsBuilder = null) //Created overload instead of default parameter where TDbContext : AbpDbContext { - services //TODO: This code is copied from EntityFrameworkServiceCollectionExtensions, we should think on that later - .AddMemoryCache() - .AddLogging(); + services.AddMemoryCache(); services.TryAddTransient(); services.TryAddTransient(DbContextOptionsFactory.Create);