Concept Framework 2.2 documentation | Contents | Index |
Name | Type | Access | Version | Deprecated |
Update | function | public | version 1.0 | no |
public function Update(); |
Performs a positional update on the current query. Is better to avoid the positional updates and deletes. Is recommended to use the CommandText or PreparedQuery and ExecuteNonQuery to execute an "update" query. Positional operations are sometimes dangerous to the data integrity. |
... DataSet.CommadText="select * from my_table"; DataSet.ExecuteQuery(); ... //-----------------------------------------------------------------// DataSet.FieldValues["my_field"]="my new value"; DataSet.Update(); //-----------------------------------------------------------------// // is equivalent with var current_id= DataSet.FieldValues["id"].ToNumber(); DataSet.CommandText="update my_table set my_field=\"my new value\" where id=$current_id"; //-----------------------------------------------------------------// |
Documented by Eduard Suica, generation time: Sun Jan 27 18:15:09 2013 GMT | (c)2013 Devronium Applications |