Home Notices Documents Classes Download Others Rice
Classes  >  command  >  command(string,connection,transaction)
command class : command(string,connection,transaction) fitter

Description

Get a new instance of command class.

Syntax

new command(string commandText, connection cnn, transaction tran)

Arguments

ClassNameDescription
stringcommandTextA SQL statement.
connectioncnnA database connection.
transactiontranA transaction.

Return value

ClassDescription
commandA new instance of command class. The instance has been initialized.

Sample code

1:

connection cnn = new connection("Data Source=c:\somedirectory\somedatabase.sqlite3;Version=3;");

2:

cnn.Open();

3:

transaction tran = cnn.BeginTransaction();

4:

command cmm = new command("create table sometable (id int, name text);", cnn, tran);

Notes

The instance returned by this fitter has been initialized.

Links for reference

None.

Copyright © Rice All rights reserved.