RdmDataAdapter(string, RdmConnection) Constructor
Syntax:
public RdmDataAdapter(string sql, RdmConnection connection)
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 connection) as the SelectCommand and with an empty InsertCommand, UpdateCommand, and DeleteCommand.
Using this constructor is identical to the following commands:
RdmCommand cmd = new RdmCommand(sql, connection); 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.
connection
Type: RdmConnection
Specifies connection to use for the new RdmConnection that will be generated to produce the SelectCommand.