From 546c24da4817c086375a14efe07b6bbac27d5fde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 8 Feb 2021 18:31:59 +0300 Subject: [PATCH] Remove unused method: ShouldRegisterDefaultRepositoryFor --- .../AbpCommonDbContextRegistrationOptions.cs | 20 ------------------- 1 file changed, 20 deletions(-) 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