A collection of parameters associated to a FbCommand. This class cannot be inherited.
For a list of all members of this type, see FbParameterCollection Members.
System.Object
System.MarshalByRefObject
FirebirdSql.Data.Firebird.FbParameterCollection
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
The number of the parameters in the collection must be equal to the number of parameter placeholders and/or named parameters in the command text, or Firebird will raise an exceptionraises an error.
public void AddFbParameters() { // ... // create myDataSet and myDataAdapter // ... myDataAdapter.SelectCommand.Parameters.Add("@CategoryName", FbDbType.VarChar, 80).Value = "toasters"; myDataAdapter.SelectCommand.Parameters.Add("@SerialNum", FbDbType.Integer).Value = 239; myDataAdapter.Fill(myDataSet); }
Namespace: FirebirdSql.Data.Firebird
Assembly: FirebirdSql.Data.Firebird (in FirebirdSql.Data.Firebird.dll)
FbParameterCollection Members | FirebirdSql.Data.Firebird Namespace