command class : Transaction(transaction) setter
Description
Sets a transaction.
Syntax
instance.Transaction = value;
Assigned value
| Class | Description |
| transaction | A transaction. |
Return value
None.
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);"); |
| 4: | cmm.Connection = cnn; |
| 5: | cmm.Transaction = cnn.BeginTransaction(); |
Notes
None.
Links for reference
None.


