Skip to content

Commit a59f64e

Browse files
author
zzzprojects
committed
Fix Batchupdate for expression byte[]
Fix Batchupdate for expression byte[]
1 parent 3400c67 commit a59f64e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/shared/Z.EF.Plus.BatchUpdate.Shared/BatchUpdate.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,6 +1233,11 @@ public Dictionary<string, object> ResolveUpdateFromQueryDictValues<T>(Expression
12331233
// Compile the expression and get the value.
12341234
var lambda = Expression.Lambda(memberExpression, null);
12351235
value = lambda.Compile().DynamicInvoke();
1236+
1237+
if (value == null)
1238+
{
1239+
value = new NullValue() { Type = lambda.ReturnType };
1240+
}
12361241
}
12371242

12381243
dictValues.Add(propertyName, value);

0 commit comments

Comments
 (0)