Browse Source

Remove unused method: ShouldRegisterDefaultRepositoryFor

pull/7662/head
Halil İbrahim Kalkan 6 years ago
parent
commit
546c24da48
  1. 20
      framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/DependencyInjection/AbpCommonDbContextRegistrationOptions.cs

20
framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/DependencyInjection/AbpCommonDbContextRegistrationOptions.cs

@ -117,25 +117,5 @@ namespace Volo.Abp.DependencyInjection
CustomRepositories[entityType] = repositoryType; 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;
}
} }
} }
Loading…
Cancel
Save