LinqDataAdapterExtensions

Overview

The LinqDataAdapterExtensions 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 LinqDataAdapter class and for the LinqLocalDataAdapter and LinqRemoteDataAdapter 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


ApplyChangesAsync

Asynchronously applies data changes to the server.

Method call example:

await fDataAdapter.ApplyChangesAsync();

 

method ApplyChangesAsync: Task

 

Task ApplyChangesAsync()

 

Function ApplyChangesAsync As Task

LoadBindableListAsync<T>

 

method LoadBindableListAsync<T>(query: IQueryable<T>): Task<DABindingList<T>>

 

Task<DABindingList<T>> LoadBindableListAsync<T>(IQueryable<T> query)

 

Function LoadBindableListAsync<T>(query As IQueryable<T>) As Task<DABindingList<T>>

Parameters:

  • query:

LoadListAsync<T>

 

method LoadListAsync<T>(query: IQueryable<T>): Task<List<T>>

 

Task<List<T>> LoadListAsync<T>(IQueryable<T> query)

 

Function LoadListAsync<T>(query As IQueryable<T>) As Task<List<T>>

Parameters:

  • 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

See Also