Dil

RelationalQueryableMethodTranslatingExpressionVisitor.GenerateJsonPartialUpdateSetter Yöntem

Tanım

JSON sütunları içinde kısmi güncelleştirmeleri uygulamak için sağlayıcı uzantısı noktası.

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

Parametreler

target
Expression

Güncelleştirilecek hedefi temsil eden bir ifade; (JSON sütununda bir skaler özellik güncelleştirilirken) veya bir JsonQueryExpression (bir nesne veya koleksiyon güncelleştirilirken) olabilir JsonScalarExpression .

value
SqlExpression

Ayarlanacak JSON değeri, içinde QuerySqlGeneratorkullanıma hazır as-is.

existingSetterValue
SqlExpression

Bu JSON sütunu için önceden bir ayarlayıcı oluşturulduysa, değeri buraya geçirilir (örneğin, aynı JSON sütununda birden çok özellik güncelleştirildiğinde bu durum oluşur). Uygulamalar yeni ayarlayıcıyı mevcut ayarlayıcıya oluşturabilir (ve döndürebilir null) veya yeni bir tane döndürebilir.

Döndürülenler

Şunlara uygulanır