Appearance
Update Method
Definition
- Namespace:
JASE.Database.SqlGenerators - Assembly:
JASE.Database.dll
Overloads
| Name | Description |
|---|---|
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
| Name | Description |
|---|---|
bindLayout | Update for standalone updates (matches GetUpdateBindColumns), or Upsert when embedded in SQL Server upsert batches. |
tableInfo | Target 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
| Name | Description |
|---|---|
allowUnfiltered | When false (default), empty / match-all predicates are rejected. Pass true only for intentional mass updates (see AllowUnfilteredMutation). |
assignments | SET clause assignments. |
query | WHERE predicate; empty / match-all is rejected unless allowUnfiltered is true. |
tableInfo | Target table. |