command class : command(string,connection) fitter

Description

Returns a new instance of command class.

Syntax

new command(string commandText, connection cnn)

Arguments

ClassNameDescription
stringcommandTextSQL statement.
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("create table sometable (id int, name text);", cnn);

Notes

The returned instance has been initialized.

Links for reference

None.

Copyright © Cooker All rights reserved.