Performs an update operation using the SqlDataSourceView.UpdateCommand SQL string, any parameters that are in the SqlDataSourceView.UpdateParameters collection, and the values that are in the specified keys, values, and oldValues collections.
- keys
- An IDictionary of primary keys to use with the SqlDataSourceView.UpdateCommand property to perform the update database operation. If there are no keys associated with the query or if the SqlDataSourceView.UpdateCommand is not a parameterized SQL query, pass null.
- values
- An IDictionary of values to use with the SqlDataSourceView.UpdateCommand property to perform the update database operation. If there are no parameters associated with the query or if the SqlDataSourceView.UpdateCommand is not a parameterized SQL query, pass null.
- oldValues
- An IDictionary that represents the original values in the database. If there are no parameters associated with the query or if the SqlDataSourceView.UpdateCommand is not a parameterized SQL query, pass null.
A value that represents the number of rows updated in the underlying database.
The SqlDataSourceView.Update(IDictionary, IDictionary, IDictionary) method calls the SqlDataSourceView.ExecuteUpdate(IDictionary, IDictionary, IDictionary) method, passing the keys, values, and oldValues parameters. For more information, see SqlDataSource.UpdateCommand.