dotConnect for Snowflake Documentation
Devart.Data.Snowflake Namespace / SnowflakeParameterCollection Class
Members Example

On this page
    SnowflakeParameterCollection Class
    On this page
    Collects all parameters relevant to a SnowflakeCommand 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 Snowflake raises an error.
    Example
    The following example adds instance of SnowflakeParameter to collection.
    public void AddSnowflakeParameters()
    {
      // Create snowflakeConnection and snowflakeCommand.
    
      snowflakeCommand.CommandText = "DELETE Dept WHERE DeptNo = :DeptNo";
      snowflakeCommand.Parameters.Add("DeptNo", DbType.Int64).Value = 50;
      snowflakeCommand.ExecuteNonQuery();
    }
    Public Sub AddSnowflakeParameters()
      ' Create snowflakeConnection and snowflakeCommand.
    
      snowflakeCommand.CommandText = "DELETE Dept WHERE DeptNo = :DeptNo"
      snowflakeCommand.Parameters.Add("DeptNo", DbType.Int64).Value = 50
      snowflakeCommand.ExecuteNonQuery()
    
    End Sub 'AddSnowflakeParameters
    Inheritance Hierarchy

    System.Object
       System.MarshalByRefObject
          System.Data.Common.DbParameterCollection
             Devart.Common.DbParameterBaseCollection
                Devart.Data.SqlShimParameterCollection<T>
                   Devart.Data.Snowflake.SnowflakeParameterCollection

    See Also