 | DataContextUpdateAllTModel, TUpdateModel(ExpressionFuncTModel, Boolean, ExpressionFuncTUpdateModel, Object) Method |
Update all data matching whereExpression to updateStatements
Namespace: SanteDB.OrmLiteAssembly: SanteDB.OrmLite (in SanteDB.OrmLite.dll) Version: 3.0.2081-alpha+d0a78774d3f97b9193d2ae2fef6d129ea9f29519
Syntaxpublic void UpdateAll<TModel, TUpdateModel>(
Expression<Func<TModel, bool>> whereExpression,
params Expression<Func<TUpdateModel, Object>>[] updateStatements
)
Public Sub UpdateAll(Of TModel, TUpdateModel) (
whereExpression As Expression(Of Func(Of TModel, Boolean)),
ParamArray updateStatements As Expression(Of Func(Of TUpdateModel, Object))()
)
public:
generic<typename TModel, typename TUpdateModel>
void UpdateAll(
Expression<Func<TModel, bool>^>^ whereExpression,
... array<Expression<Func<TUpdateModel, Object^>^>^>^ updateStatements
)
member UpdateAll :
whereExpression : Expression<Func<'TModel, bool>> *
updateStatements : Expression<Func<'TUpdateModel, Object>>[] -> unit Parameters
- whereExpression ExpressionFuncTModel, Boolean
- The filter expression
- updateStatements ExpressionFuncTUpdateModel, Object
- The update statements to append to the SQL clause
Type Parameters
- TModel
- The type of object to update
- TUpdateModel
- The type that update statements should be treated as
See Also