ModelDataSourceView.ExecuteUpdate(IDictionary, IDictionary, IDictionary) 方法
定义
用 UpdateMethod 方法执行更新操作。Performs an update operation using the UpdateMethod method.
protected:
override int ExecuteUpdate(System::Collections::IDictionary ^ keys, System::Collections::IDictionary ^ values, System::Collections::IDictionary ^ oldValues);
protected override int ExecuteUpdate (System.Collections.IDictionary keys, System.Collections.IDictionary values, System.Collections.IDictionary oldValues);
override this.ExecuteUpdate : System.Collections.IDictionary * System.Collections.IDictionary * System.Collections.IDictionary -> int
Protected Overrides Function ExecuteUpdate (keys As IDictionary, values As IDictionary, oldValues As IDictionary) As Integer
参数
- keys
- IDictionary
与 UpdateMethod 方法一起使用的参数。The parameters to be used with the UpdateMethod method. 如果没有与方法关联的参数,则传递 null。If there are no parameters associated with the method, pass null.
- values
- IDictionary
要更新的新行值。The new values of the row to be updated.
- oldValues
- IDictionary
要更新的行的旧值。The old values of the row to be updated.
返回
插入的行数;否则,如果行数未知,则为 -1。The number of rows inserted; otherwise, -1, if the number is not known.