語言

RelationalQueryableMethodTranslatingExpressionVisitor.GenerateJsonPartialUpdateSetter 方法

定義

提供者擴充點,用於在 JSON 欄位中實作部分更新。

protected virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression? GenerateJsonPartialUpdateSetter(System.Linq.Expressions.Expression target, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression value, ref Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression? existingSetterValue);
abstract member GenerateJsonPartialUpdateSetter : System.Linq.Expressions.Expression * Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression * SqlExpression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
override this.GenerateJsonPartialUpdateSetter : System.Linq.Expressions.Expression * Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression * SqlExpression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
Protected Overridable Function GenerateJsonPartialUpdateSetter (target As Expression, value As SqlExpression, ByRef existingSetterValue As SqlExpression) As SqlExpression

參數

target
Expression

一個表示待更新目標的表達式;可以是 JsonScalarExpression (當 JSON 欄位中更新純量屬性時),或是 a JsonQueryExpression (當物件或集合正在更新時)。

value
SqlExpression

要設定、準備使用的 JSON 值 as-is QuerySqlGenerator。

existingSetterValue
SqlExpression

如果之前為該 JSON 欄位建立了設定器,則會將其值傳遞到此處(例如同一 JSON 欄位中更新多個屬性時)。 實作可以將新的設定器組合成現有的設定器(並返回 null),或回傳新的設定器。

傳回

適用於