DataAdapterExtensions

Overview

The DataAdapterExtensions class contains a set of methods used to simplify asynchronous data access and update operations using async/await pattern. Extension methods are available for the DataAdapter class and for the LocalDataAdapter and RemoteDataAdapter classes descended from it.

Note: To call an extension method, you need to explicitly add the namespace this method is declared in to the using (C#)/Imports (VB.NET) or uses (Oxygene) clause.

Location

Instance Methods


FillAsync (DataSet, array of String, array of WhereExpression, Boolean): Task

 

method FillAsync(dataset: DataSet; tableNames: array of String; whereClauses: array of WhereExpression; applySchema: Boolean): Task

 

Task FillAsync(DataSet dataset, String[] tableNames, WhereExpression[] whereClauses, Boolean applySchema)

 

Function FillAsync(dataset As DataSet, tableNames As array of String, whereClauses As array of WhereExpression, applySchema As Boolean) As Task

Parameters:

  • dataset:
  • tableNames:
  • whereClauses:
  • applySchema:

FillAsync (DataSet, array of String, array of TableRequestInfo, Boolean): Task

 

method FillAsync(dataset: DataSet; tableNames: array of String; tableRequestInfo: array of TableRequestInfo; applySchema: Boolean): Task

 

Task FillAsync(DataSet dataset, String[] tableNames, TableRequestInfo[] tableRequestInfo, Boolean applySchema)

 

Function FillAsync(dataset As DataSet, tableNames As array of String, tableRequestInfo As array of TableRequestInfo, applySchema As Boolean) As Task

Parameters:

  • dataset:
  • tableNames:
  • tableRequestInfo:
  • applySchema:

FillAsync (DataSet, array of String, Boolean): Task

 

method FillAsync(dataset: DataSet; tableNames: array of String; applySchema: Boolean): Task

 

Task FillAsync(DataSet dataset, String[] tableNames, Boolean applySchema)

 

Function FillAsync(dataset As DataSet, tableNames As array of String, applySchema As Boolean) As Task

Parameters:

  • dataset:
  • tableNames:
  • applySchema:

FillAsync (DataSet, Boolean): Task

Retrieves data from the server and fills the provided DataSet.

 

method FillAsync(dataset: DataSet; applySchema: Boolean): Task

 

Task FillAsync(DataSet dataset, Boolean applySchema)

 

Function FillAsync(dataset As DataSet, applySchema As Boolean) As Task

Parameters:

  • dataset: DataSet to load data into
  • applySchema: Flag indicating wheter Schema should be downloaded from the server and applied to the DataSet

FillAsync (DataSet, Schema, Boolean): Task

 

method FillAsync(dataset: DataSet; schema: Schema; applySchema: Boolean): Task

 

Task FillAsync(DataSet dataset, Schema schema, Boolean applySchema)

 

Function FillAsync(dataset As DataSet, schema As Schema, applySchema As Boolean) As Task

Parameters:

  • dataset:
  • schema:
  • applySchema:

FillAsync (DataTable, WhereExpression, Boolean): Task

 

method FillAsync(table: DataTable; whereClause: WhereExpression; applySchema: Boolean): Task

 

Task FillAsync(DataTable table, WhereExpression whereClause, Boolean applySchema)

 

Function FillAsync(table As DataTable, whereClause As WhereExpression, applySchema As Boolean) As Task

Parameters:

  • table:
  • whereClause:
  • applySchema:

FillAsync (DataTable, TableRequestInfo, Boolean): Task

 

method FillAsync(table: DataTable; tableRequestInfo: TableRequestInfo; applySchema: Boolean): Task

 

Task FillAsync(DataTable table, TableRequestInfo tableRequestInfo, Boolean applySchema)

 

Function FillAsync(table As DataTable, tableRequestInfo As TableRequestInfo, applySchema As Boolean) As Task

Parameters:

  • table:
  • tableRequestInfo:
  • applySchema:

FillWithDASqlAsync

Retrieves result of the DA SQL query from the server and fills the provided DataTable.

 

method FillWithDASqlAsync(table: DataTable; sql: String; parameters: array of DataParameter): Task

 

Task FillWithDASqlAsync(DataTable table, String sql, DataParameter[] parameters)

 

Function FillWithDASqlAsync(table As DataTable, sql As String, parameters As array of DataParameter) As Task

Parameters:

  • table: DataTable to load data into
  • sql: DA SQL query
  • parameters: Parameters of the DA SQL query

LoginAsync

Asynchronously performs the user login procedure.

 

method LoginAsync: Task<Boolean>

 

Task<Boolean> LoginAsync()

 

Function LoginAsync As Task<Boolean>

LoginAsync (String): Task<Boolean>

Asynchronously performs the user login procedure.

 

method LoginAsync(loginString: String): Task<Boolean>

 

Task<Boolean> LoginAsync(String loginString)

 

Function LoginAsync(loginString As String) As Task<Boolean>

Parameters:

  • loginString:

LoginAsync (String, String): Task<Boolean>

Asynchronously performs the user login procedure.

 

method LoginAsync(username: String; password: String): Task<Boolean>

 

Task<Boolean> LoginAsync(String username, String password)

 

Function LoginAsync(username As String, password As String) As Task<Boolean>

Parameters:

  • username:
  • password:

LogoutAsync

Asynchronously performs the user logout procedure.

 

method LogoutAsync: Task

 

Task LogoutAsync()

 

Function LogoutAsync As Task

UpdateAsync (array of Delta, Boolean): Task

 

method UpdateAsync(deltas: array of Delta; ignoreErrors: Boolean): Task

 

Task UpdateAsync(Delta[] deltas, Boolean ignoreErrors)

 

Function UpdateAsync(deltas As array of Delta, ignoreErrors As Boolean) As Task

Parameters:

  • deltas:
  • ignoreErrors:

UpdateAsync (DataSet): Task

Applies changes in the provided DataSet to the server.

 

method UpdateAsync(dataset: DataSet): Task

 

Task UpdateAsync(DataSet dataset)

 

Function UpdateAsync(dataset As DataSet) As Task

Parameters:

  • dataset: DataSet containing changed tables

UpdateAsync (DataSet, array of String): Task

 

method UpdateAsync(dataset: DataSet; tableNames: array of String): Task

 

Task UpdateAsync(DataSet dataset, String[] tableNames)

 

Function UpdateAsync(dataset As DataSet, tableNames As array of String) As Task

Parameters:

  • dataset:
  • tableNames:

See Also