We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cce00db commit 26d0ae8Copy full SHA for 26d0ae8
1 file changed
Orm/Xtensive.Orm/Orm/Building/Builders/IndexBuilder.ClassTable.cs
@@ -87,7 +87,7 @@ private void BuildClassTableIndexes(TypeInfo type)
87
var primaryIndex = type.Indexes.FindFirst(IndexAttributes.Primary | IndexAttributes.Real);
88
if (untypedIndexes.Contains(primaryIndex) && primaryIndex.ReflectedType == root)
89
primaryIndex = type.Indexes.Single(i => i.DeclaringIndex == primaryIndex.DeclaringIndex && i.IsTyped);
90
- var filterByTypes = type.AllDescendants.Append(type).ToList();
+ var filterByTypes = type.AllDescendants.Append(type).ToList(type.AllDescendants.Count + 1);
91
92
// Build virtual primary index
93
if (ancestors.Count > 0) {
0 commit comments