Skip to content

Commit 81333f5

Browse files
committed
Excludes check for key equality for key remapper work
1 parent b804469 commit 81333f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orm/Xtensive.Orm/Orm/Persistent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ protected internal void SetReferenceKey(FieldInfo field, Key value)
307307
throw new InvalidOperationException(string.Format("Key of {0} type is not assignable to field of {1} type", value.TypeInfo.Name, field.ValueType.Name));
308308
}
309309

310-
if (value == oldValue) {
310+
if (value == oldValue && !isPersisting) {
311311
return;
312312
}
313313

0 commit comments

Comments
 (0)