Hide

YetaWF.DataProvider.PostgreSQL Package Documentation

Display
Print

YetaWF.DataProvider.PostgreSQL.SQLSimpleObjectBase<KEYTYPE,KEYTYPE2,OBJTYPE>.UpdateAsync Method

Updates an existing record with the specified existing primary keys in the database table. The primary keys can be changed to new values.

Class: YetaWF.DataProvider.PostgreSQL.SQLSimpleObjectBase<KEYTYPE,KEYTYPE2,OBJTYPE>
Namespace: YetaWF.DataProvider.PostgreSQL
Assembly: YetaWF.DataProvider.PostgreSQL

Syntax

public Task<YetaWF.Core.DataProvider.UpdateStatusEnum> UpdateAsync(
    KEYTYPE origKey,
    KEYTYPE newKey,
    OBJTYPE obj );
public Task<YetaWF.Core.DataProvider.UpdateStatusEnum> UpdateAsync(
    KEYTYPE origKey,
    KEYTYPE2? origKey2,
    KEYTYPE newKey,
    KEYTYPE2? newKey2,
    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.

origKey2

The original secondary key value of the record.

newKey2

The new secondary key value of the record. This may be the same value as origKey2.

Return Value

Returns a status indicator.

See Also YetaWF.DataProvider.PostgreSQL.SQLSimpleObjectBase<KEYTYPE,KEYTYPE2,OBJTYPE> ClassYetaWF.DataProvider.PostgreSQLYetaWF.Core