diff --git a/framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/DependencyInjection/AbpCommonDbContextRegistrationOptions.cs b/framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/DependencyInjection/AbpCommonDbContextRegistrationOptions.cs index c7f7230710..dbd46811f2 100644 --- a/framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/DependencyInjection/AbpCommonDbContextRegistrationOptions.cs +++ b/framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/DependencyInjection/AbpCommonDbContextRegistrationOptions.cs @@ -117,25 +117,5 @@ namespace Volo.Abp.DependencyInjection CustomRepositories[entityType] = repositoryType; } - - public bool ShouldRegisterDefaultRepositoryFor(Type entityType) - { - if (!RegisterDefaultRepositories) - { - return false; - } - - if (CustomRepositories.ContainsKey(entityType)) - { - return false; - } - - if (!IncludeAllEntitiesForDefaultRepositories && !typeof(IAggregateRoot).IsAssignableFrom(entityType)) - { - return false; - } - - return true; - } } } \ No newline at end of file