Hide

YetaWF.DataProvider.PostgreSQL Package Documentation

Display
Print

YetaWF.DataProvider.PostgreSQL.SQLModuleObject<KEY,OBJTYPE>.UpdateAsync Method

Updates an existing record with the specified existing primary key origKey in the database table. The primary key can be changed to the new value in newKey.

Class: YetaWF.DataProvider.PostgreSQL.SQLModuleObject<KEY,OBJTYPE>
Namespace: YetaWF.DataProvider.PostgreSQL
Assembly: YetaWF.DataProvider.PostgreSQL

Syntax

public Task<YetaWF.Core.DataProvider.UpdateStatusEnum> UpdateAsync(
    KEY origKey,
    KEY newKey,
    OBJTYPE obj );

Parameters

origKey

The original primary key value of the record.

newKey

The new primary key value of the record. This may be the same value as origKey.

obj

The object being updated.

Return Value

Returns a status indicator.

See Also YetaWF.DataProvider.PostgreSQL.SQLModuleObject<KEY,OBJTYPE> ClassYetaWF.DataProvider.PostgreSQLYetaWF.Core