Skip to content

Commit

Permalink
Merge pull request #7662 from abpframework/remove-unused-method
Browse files Browse the repository at this point in the history
Remove unused method: AbpCommonDbContextRegistrationOptions.ShouldRegisterDefaultRepositoryFor
  • Loading branch information
maliming committed Feb 9, 2021
2 parents 835aa88 + 546c24d commit 64fd970
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,25 +117,5 @@ private void AddCustomRepository(Type entityType, Type 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;
}
}
}

0 comments on commit 64fd970

Please sign in to comment.