dotConnect for SQLite Documentation
Devart.Data.SQLite Namespace / SQLiteParameterCollection Class
Members Example

SQLiteParameterCollection Class
Collects all parameters relevant to a SQLiteCommand as well as their respective mappings to System.Data.DataSet columns.
Syntax
Remarks
The number of parameters in the collection must be equal to the number of parameter placeholders within the command text, or SQLite raises an error.
Example
The following example adds instance of SQLiteParameter to collection.
public void AddSQLiteParameters()
{
  // Create sqConnection and sqCommand.

  sqCommand.CommandText = "DELETE Dept WHERE DeptNo = :DeptNo";
  sqCommand.Parameters.Add("DeptNo", SQLiteType.Int32).Value = 50;
  sqCommand.ExecuteNonQuery();
}
Public Sub AddSQLiteParameters()
  // Create sqConnection and sqCommand.

  sqCommand.CommandText = "DELETE Dept WHERE DeptNo = :DeptNo"
  sqCommand.Parameters.Add("DeptNo", SQLiteType.Int32).Value = 50
  sqCommand.ExecuteNonQuery()

End Sub 'AddSQLiteParameters
Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      System.Data.Common.DbParameterCollection
         Devart.Common.DbParameterBaseCollection
            Devart.Data.SQLite.SQLiteParameterCollection

See Also