Update

This method updates the object referenced by the specified REF in the database using the specified custom object.

Declaration

// C# - managed and core ODP.NET
public void Update(object customObject);
// C# - unmanaged ODP.NET
public void Update(object customObject, bool bFlush);

Parameters

Exceptions

InvalidOperationException - The specified connection is not open or the custom object does not map to the type of referenced object.

Remarks

This method marks the specified REF for update. In managed ODP.NET and ODP.NET Core, Update(customObject) has the same behavior as unmanaged ODP.NET Update(customObject, true). Depending on whether the value of bFlush is set to true or false, the following occurs:

The connection must be opened explicitly by the application. This method does not open the connection implicitly.

See Also: