Skip to content

Commit 0299025

Browse files
committed
Small hashset population improvement
1 parent a65518a commit 0299025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orm/Xtensive.Orm/Orm/Upgrade/Internals/HintGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ private void GenerateCleanupByForeignKeyHints(StoredTypeInfo removedType, Cleanu
357357
? removedType.AllDescendants
358358
: Array.Empty<StoredTypeInfo>();
359359
var descendants = new HashSet<StoredTypeInfo>(descendantsToHash.Length);
360-
descendantsToHash.ForEach(t => descendants.Add(t));
360+
descendants.UnionWith(descendantsToHash);
361361

362362
var affectedAssociations = (
363363
from association in extractedModel.Associations

0 commit comments

Comments
 (0)