Share via


SetPropertyCalls<TSource>.SetProperty Method

Definition

Overloads

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

Specifies a property and corresponding value it should be updated to in ExecuteUpdate method.

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

Specifies a property and corresponding value it should be updated to in ExecuteUpdate method.

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

Specifies a property and corresponding value it should be updated to in ExecuteUpdate method.

public Microsoft.EntityFrameworkCore.Query.SetPropertyCalls<TSource> SetProperty<TProperty> (Func<TSource,TProperty> propertyExpression, Func<TSource,TProperty> valueExpression);
member this.SetProperty : Func<'Source, 'Property> * Func<'Source, 'Property> -> Microsoft.EntityFrameworkCore.Query.SetPropertyCalls<'Source>
Public Function SetProperty(Of TProperty) (propertyExpression As Func(Of TSource, TProperty), valueExpression As Func(Of TSource, TProperty)) As SetPropertyCalls(Of TSource)

Type Parameters

TProperty

The type of property.

Parameters

propertyExpression
Func<TSource,TProperty>

A property access expression.

valueExpression
Func<TSource,TProperty>

A value expression.

Returns

The same instance so that multiple calls to SetProperty<TProperty>(Func<TSource,TProperty>, Func<TSource,TProperty>) can be chained.

Applies to

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

Specifies a property and corresponding value it should be updated to in ExecuteUpdate method.

public Microsoft.EntityFrameworkCore.Query.SetPropertyCalls<TSource> SetProperty<TProperty> (Func<TSource,TProperty> propertyExpression, TProperty valueExpression);
member this.SetProperty : Func<'Source, 'Property> * 'Property -> Microsoft.EntityFrameworkCore.Query.SetPropertyCalls<'Source>
Public Function SetProperty(Of TProperty) (propertyExpression As Func(Of TSource, TProperty), valueExpression As TProperty) As SetPropertyCalls(Of TSource)

Type Parameters

TProperty

The type of property.

Parameters

propertyExpression
Func<TSource,TProperty>

A property access expression.

valueExpression
TProperty

A value expression.

Returns

The same instance so that multiple calls to SetProperty<TProperty>(Func<TSource,TProperty>, TProperty) can be chained.

Applies to