Browse Source

Merge pull request #7662 from abpframework/remove-unused-method

Remove unused method: AbpCommonDbContextRegistrationOptions.ShouldRegisterDefaultRepositoryFor
pull/7673/head
maliming 6 years ago
committed by GitHub
parent
commit
64fd97034c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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;
}
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