Skip to content

Commit e3e4850

Browse files
committed
Use SelectToList in PrefetchActionContainer
1 parent 249a76c commit e3e4850

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Orm/Xtensive.Orm/Orm/Building/PrefetchActionContainer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using System.Collections.Generic;
99
using System.Collections.ObjectModel;
1010
using System.Linq;
11+
using Xtensive.Core;
1112
using Xtensive.Orm.Internals.Prefetch;
1213
using Xtensive.Orm.Model;
1314
using Xtensive.Orm.Providers;
@@ -24,8 +25,7 @@ internal sealed class PrefetchActionContainer
2425
public Action<SessionHandler, IEnumerable<Key>> BuildPrefetchAction()
2526
{
2627
fields = associations
27-
.Select(association => new PrefetchFieldDescriptor(association.OwnerField, true, false))
28-
.ToList()
28+
.SelectToList(association => new PrefetchFieldDescriptor(association.OwnerField, true, false))
2929
.AsReadOnly();
3030
return Prefetch;
3131
}

0 commit comments

Comments
 (0)