private static IComparer GetComparer(ModelBuilder.OeEdmModelMetadataProvider metadataProvider, Type entityType) { if (_entityComaprers.TryGetValue(entityType, out IComparer comparer)) { return(comparer); } comparer = TestHelper.CreateEntryEqualityComparer(metadataProvider, entityType); _entityComaprers.TryAdd(entityType, comparer); return(comparer); }