Skip to content

Update Method ​

Definition ​

  • Namespace: JASE.Database.SqlGenerators
  • 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, ColumnLayout bindLayout)Builds an UPDATE statement using parameter indices aligned to the requested column layout.
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, ColumnLayout bindLayout) ​

csharp
UpdateStatement Update(ITableInfo tableInfo, ColumnLayout bindLayout)

Builds an UPDATE statement using parameter indices aligned to the requested column layout.

Parameters ​

NameDescription
bindLayoutUpdate for standalone updates (matches GetUpdateBindColumns), or Upsert when embedded in SQL Server upsert batches.
tableInfoTarget table.

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.