Contents Index AsaDataAdapter class AcceptChangesDuringFill property

ASA Programming Guide
  Adaptive Server Anywhere .NET Data Provider API Reference
    AsaDataAdapter class

AsaDataAdapter constructors


Description 

Initializes an AsaDataAdapter object.

Syntax 1 

void AsaDataAdapter( )

Syntax 2 

void AsaDataAdapter( AsaCommand selectCommand )

Syntax 3 

void AsaDataAdapter(
string selectCommandText,
AsaConnection selectConnection
)

Syntax 4 

void AsaDataAdapter(
string selectCommandText,
string selectConnectionString
)

Parameters 

selectCommand    An AsaCommand object that is used during Fill to select records from the data source for placement in the DataSet.

selectCommandText    A SELECT statement or stored procedure to be used by the SelectCommand property of the AsaDataAdapter.

selectConnection    An AsaConnection object that defines a connection to a database.

selectConnectionString    A connection string for an Adaptive Server Anywhere database.

Example 

The following code initializes an AsaDataAdapter object:

AsaDataAdapter da = new AsaDataAdapter(
"SELECT emp_id, emp_lname FROM employee, conn );

Contents Index AsaDataAdapter class AcceptChangesDuringFill property