YetaWF.DataProvider.File Package Documentation

Display
Print

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

Retrieves one record using filtering criteria.

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

Syntax

public Task<OBJTYPE> GetOneRecordAsync(
    List<YetaWF.Core.DataProvider.DataProviderFilterInfo> filters,
    List<YetaWF.Core.DataProvider.JoinData> Joins = null );

Parameters

filters

A collection describing the filtering criteria.

Joins

A collection describing the dataset joins. Not supported by file data providers. Must be null for file data providers.

Return Value

If more than one record match the filtering criteria, the first one is returned. If no record matches, null is returned.

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