Home News DOC Class DL Others Rice
Class  >  command  >  command(connection)
command class : command(connection) fitter

Description

Returns a new instance of command class.

Syntax

new command(connection cnn)

Arguments

ClassNameDescription
connectioncnnDatabase connection.

Return value

ClassDescription
commandA new instance of command class.

Sample code

1:

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

2:

cnn.Open();

3:

command cmm = new command(cnn);

4:

cmm.CommandText = "create table sometable (id int, name text);";

Notes

The returned instance has been initialized but execution command has not been set.

You need to set the execution command in the CommandText getter.

Links for reference

None.

Copyright © Rice All rights reserved.