Skip to content
Mitchell Weg edited this page Apr 19, 2021 · 1 revision

MonetDbCommand

Queries can be made using regular SQL with the MonetDbCommand class.

MonetDbCommand cmd = new MonetDbCommand("SELECT * FROM foo;", conn);

Parameters

  • cmdText: string,

    The SQL query.

  • connection: MonetDbConnection

    MonetDbConnection object

  • transaction: MonetDbTransaction

    MonetDbTranscation object

Reading

MonetDbCommand.ExecuteReader() returns a DbDataReader, where you can iterate over.

reader = command.ExecuteReader();
while(reader.Read())
{
   // do something with the data...
}
Clone this wiki locally