Class UpdateSettersBuilder
Supports specifying property and value to be set in ExecuteUpdate method with chaining multiple calls for updating multiple columns.
This type does not have any constructor or implementation since it is used inside LINQ query solely for the purpose of creating expression tree.
public abstract class UpdateSettersBuilder
- Inheritance
-
UpdateSettersBuilder
- Derived
- Inherited Members
Remarks
See Implementation of database providers and extensions and How EF Core queries work for more information and examples.
Methods
BuildSettersExpression()
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public virtual NewArrayExpression BuildSettersExpression()
Returns
- NewArrayExpression
A NewArrayExpression containing all the setter expressions.
SetProperty(LambdaExpression, Expression)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public virtual UpdateSettersBuilder SetProperty(LambdaExpression propertyExpression, Expression valueExpression)
Parameters
propertyExpressionLambdaExpressionA lambda expression representing the property to be updated.
valueExpressionExpressionAn expression representing the value to set.
Returns
- UpdateSettersBuilder
The same instance so that multiple calls can be chained.
SetProperty(LambdaExpression, LambdaExpression)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public virtual UpdateSettersBuilder SetProperty(LambdaExpression propertyExpression, LambdaExpression valueExpression)
Parameters
propertyExpressionLambdaExpressionA lambda expression representing the property to be updated.
valueExpressionLambdaExpressionA lambda expression representing the value to set.
Returns
- UpdateSettersBuilder
The same instance so that multiple calls can be chained.