Appearance
Update Method
Definition
- Namespace:
JASE.Database - 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, 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
| 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. |