Share via


SqliteConnection.CreateCommand Method

Definition

Creates a new command associated with the connection.

public virtual Microsoft.Data.Sqlite.SqliteCommand CreateCommand ();
override this.CreateCommand : unit -> Microsoft.Data.Sqlite.SqliteCommand
Public Overridable Function CreateCommand () As SqliteCommand

Returns

The new command.

Remarks

The command's Transaction property will also be set to the current transaction.

Applies to