YetaWF.DataProvider.File Package Documentation

Display
Print

YetaWF.DataProvider.FileDataProvider<KEYTYPE,OBJTYPE>.AddAsync Method

Adds a new record.

Class: YetaWF.DataProvider.FileDataProvider<KEYTYPE,OBJTYPE>
Namespace: YetaWF.DataProvider
Assembly: YetaWF.DataProvider.File

Syntax

public Task<bool> AddAsync( OBJTYPE obj );

Parameters

obj

The new record.

Return Value

Returns true if the record was successfully added, or false if the primary key already exists. Other errors cause an exception.

See Also YetaWF.DataProvider.FileDataProvider<KEYTYPE,OBJTYPE> ClassYetaWF.DataProvider.FileYetaWF.Core