语言

UpdateSettersBuilder<TSource>.SetProperty 方法

定义

重载

名称 说明
SetProperty<TProperty>(Expression<Func<TSource,TProperty>>, Expression<Func<TSource,TProperty>>)

指定应在 ExecuteUpdate 方法中更新的属性和相应的值。

SetProperty<TProperty>(Expression<Func<TSource,TProperty>>, TProperty)

指定应在 ExecuteUpdate 方法中更新的属性和相应的值。

SetProperty<TProperty>(Expression<Func<TSource,TProperty>>, Expression<Func<TSource,TProperty>>)

Source:
SetPropertyCalls`.cs
Source:
SetPropertyCalls`.cs

指定应在 ExecuteUpdate 方法中更新的属性和相应的值。

public Microsoft.EntityFrameworkCore.Query.UpdateSettersBuilder<TSource> SetProperty<TProperty>(System.Linq.Expressions.Expression<Func<TSource,TProperty>> propertyExpression, System.Linq.Expressions.Expression<Func<TSource,TProperty>> valueExpression);
override this.SetProperty : System.Linq.Expressions.Expression<Func<'Source, 'Property>> * System.Linq.Expressions.Expression<Func<'Source, 'Property>> -> Microsoft.EntityFrameworkCore.Query.UpdateSettersBuilder<'Source>
Public Function SetProperty(Of TProperty) (propertyExpression As Expression(Of Func(Of TSource, TProperty)), valueExpression As Expression(Of Func(Of TSource, TProperty))) As UpdateSettersBuilder(Of TSource)

类型参数

TProperty

属性的类型。

参数

propertyExpression
Expression<Func<TSource,TProperty>>

属性访问表达式。

valueExpression
Expression<Func<TSource,TProperty>>

值表达式。

返回

同一实例,以便可以链接多个调用 SetProperty<TProperty>(Expression<Func<TSource,TProperty>>, Expression<Func<TSource,TProperty>>) 。

适用于

SetProperty<TProperty>(Expression<Func<TSource,TProperty>>, TProperty)

Source:
SetPropertyCalls`.cs
Source:
SetPropertyCalls`.cs

指定应在 ExecuteUpdate 方法中更新的属性和相应的值。

public Microsoft.EntityFrameworkCore.Query.UpdateSettersBuilder<TSource> SetProperty<TProperty>(System.Linq.Expressions.Expression<Func<TSource,TProperty>> propertyExpression, TProperty valueExpression);
override this.SetProperty : System.Linq.Expressions.Expression<Func<'Source, 'Property>> * 'Property -> Microsoft.EntityFrameworkCore.Query.UpdateSettersBuilder<'Source>
Public Function SetProperty(Of TProperty) (propertyExpression As Expression(Of Func(Of TSource, TProperty)), valueExpression As TProperty) As UpdateSettersBuilder(Of TSource)

类型参数

TProperty

属性的类型。

参数

propertyExpression
Expression<Func<TSource,TProperty>>

属性访问表达式。

valueExpression
TProperty

值表达式。

返回

同一实例,以便可以链接多个调用 SetProperty<TProperty>(Expression<Func<TSource,TProperty>>, TProperty) 。

适用于