RdmDataAdapter(string, string) Constructor

Syntax:

public RdmDataAdapter(string sql, string connectionString)

Description:

A constructor for the RdmDataAdapter class. Specifying a new RdmDataAdapter object with this constructor generates a new data adapter object with a new RdmCommand (created from a new RdmConnection using connectionString and with the CommandText set to sql) as the SelectCommand and with an empty InsertCommand, UpdateCommand, and DeleteCommand.

Using this constructor is identical to the following commands:

RdmConnection conn = new RdmConnection(connectionString);
RdmCommand cmd = new RdmCommand(sql, conn);
RdmDataAdapter da = new RdmDataAdapter()
da.SelectCommand = cmd;

Parameters:

sql

Type: System.String

Specifies the SQL select command to use as the CommandText of the newly created SelectCommand.

connectionString

Type: System.String

Specifies the string to use as the ConnectionString for the new RdmConnection that will be generated to produce the SelectCommand.