LinqDataSourceView.UpdateObject(Object, Object) 方法
定义
更新数据对象。Updates a data object.
protected:
override int UpdateObject(System::Object ^ oldEntity, System::Object ^ newEntity);
protected override int UpdateObject (object oldEntity, object newEntity);
override this.UpdateObject : obj * obj -> int
Protected Overrides Function UpdateObject (oldEntity As Object, newEntity As Object) As Integer
参数
- oldEntity
- Object
要更新的对象。The object to update.
- newEntity
- Object
要用于更新的新对象。The new object to use for the update.
返回
如果更新成功,则为 0(零);如果更新失败,则为 -1。0 (zero) if the update was successful, or -1 if the update failed.