Skip to content

Commit 94c2daa

Browse files
committed
Typecast bugfix of BuildEntitySetTypeState
1 parent 10c2735 commit 94c2daa

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Orm/Xtensive.Orm/Orm/EntitySetBase.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ public abstract class EntitySetBase : SessionBound,
4242
private static readonly Parameter<Tuple> keyParameter = new Parameter<Tuple>(WellKnown.KeyFieldName);
4343
internal static readonly Parameter<Entity> ownerParameter = new Parameter<Entity>("Owner");
4444

45-
private static readonly Func<object, EntitySetBase, EntitySetTypeState> BuildEntitySetTypeState = (object key, EntitySetBase entitySet) => {
46-
var field = ((Pair<object, FieldInfo>) key).Second;
45+
private static readonly Func<FieldInfo, EntitySetBase, EntitySetTypeState> BuildEntitySetTypeState = (FieldInfo field, EntitySetBase entitySet) => {
4746
var association = field.Associations.Last();
4847
var query = association.UnderlyingIndex.GetQuery().Seek(context => context.GetValue(keyParameter));
4948
var seek = entitySet.Session.Compile(query);

0 commit comments

Comments
 (0)