Skip to content

Commit b9db523

Browse files
committed
OpenJson should be strict to prevent buggy behavior
1 parent 436b70d commit b9db523

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Thinktecture.EntityFrameworkCore.SqlServer/EntityFrameworkCore/Parameters/SqlServerCollectionParameterFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ private string CreateSqlStatementForComplexType(IEntityType entityType, bool wit
176176
var columnType = property.GetColumnType(storeObject) ?? throw new Exception($"The property '{property.Name}' has no column type.");
177177

178178
sb.Append(escapedColumnName);
179-
withClause.Append(escapedColumnName).Append(" ").Append(columnType).Append($" '$.{property.Name}'");
179+
withClause.Append(escapedColumnName).Append(" ").Append(columnType).Append($" 'strict$.{property.Name}'");
180180

181181
isFirst = false;
182182
}

0 commit comments

Comments
 (0)