Skip to content

Update Method ​

Definition ​

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

Overloads ​

NameDescription
UpdateStatement Update(ITableInfo tableInfo)Generates statement to UPDATE a row into the database table setting ALL mutable columns and querying by the Primary Key
UpdateStatement Update(ITableInfo tableInfo, IEnumerable<IParameter> parameters, int index = null)Generate SQL statement to UPDATE a row of data based on primary key
UpdateStatement Update(ITableInfo tableInfo, IEnumerable<UpdateAssignment> assignments, IPredicateNode query = null, bool allowUnfiltered = null)Generate SQL statement that UPDATE rows matching the Query to the requested assignments

UpdateStatement Update(ITableInfo tableInfo) ​

csharp
UpdateStatement Update(ITableInfo tableInfo)

Generates statement to UPDATE a row into the database table setting ALL mutable columns and querying by the Primary Key

UpdateStatement Update(ITableInfo tableInfo, IEnumerable<IParameter> parameters, int index = null) ​

csharp
UpdateStatement Update(ITableInfo tableInfo, IEnumerable<IParameter> parameters, int index = null)

Generate SQL statement to UPDATE a row of data based on primary key

UpdateStatement Update(ITableInfo tableInfo, IEnumerable<UpdateAssignment> assignments, IPredicateNode query = null, bool allowUnfiltered = null) ​

csharp
UpdateStatement Update(ITableInfo tableInfo, IEnumerable<UpdateAssignment> assignments, IPredicateNode query = null, bool allowUnfiltered = null)

Generate SQL statement that UPDATE rows matching the Query to the requested assignments

Parameters ​

NameDescription
allowUnfilteredWhen false (default), empty / match-all predicates are rejected. Pass true only for intentional mass updates (see AllowUnfilteredMutation).
assignmentsSET clause assignments.
queryWHERE predicate; empty / match-all is rejected unless allowUnfiltered is true.
tableInfoTarget table.