Hide

YetaWF.DataProvider.SQLDyn Package Documentation

Display
Print

YetaWF.DataProvider.SQL.SQLSimpleObjectBase<KEYTYPE,KEYTYPE2,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.SQL.SQLSimpleObjectBase<KEYTYPE,KEYTYPE2,OBJTYPE>
Namespace: YetaWF.DataProvider.SQL
Assembly: YetaWF.DataProvider.SQLDyn

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.SQL.SQLSimpleObjectBase<KEYTYPE,KEYTYPE2,OBJTYPE> ClassYetaWF.DataProvider.SQLDynYetaWF.Core