Hide

YetaWF.DataProvider.PostgreSQL Package Documentation

Display
Print

YetaWF.DataProvider.PostgreSQL.SQLBase.Direct_ScalarIntAsync Method

Executes the provided PostgreSQL statement(s) and returns a scalar integer.

Class: YetaWF.DataProvider.PostgreSQL.SQLBase
Namespace: YetaWF.DataProvider.PostgreSQL
Assembly: YetaWF.DataProvider.PostgreSQL

Syntax

public Task<int> Direct_ScalarIntAsync( string sql );
public Task<int> Direct_ScalarIntAsync(
    string sql,
    params object[] args );

Parameters

sql

The PostgreSQL statement(s).

args

Optional arguments that are passed when executing the SQL statements.

Return Value

Returns a scalar integer.

Remarks

This is used by application data providers to build and execute complex queries that are not possible with the standard data providers. Use of this method limits the application data provider to PostgreSQL repositories.

See Also YetaWF.DataProvider.PostgreSQL.SQLBase ClassYetaWF.DataProvider.PostgreSQLYetaWF.Core