Firebird ADO.NET Provider SDK Documentation - v1.7

FbParameter Class

Represents a parameter of a FbCommand, and optionally, its mapping to DataSet columns. This class cannot be inherited.

For a list of all members of this type, see FbParameter Members.

System.Object
   System.MarshalByRefObject
      FirebirdSql.Data.Firebird.FbParameter

[Visual Basic]
<ParenthesizePropertyName(NeedParenthesis:=True), _  TypeConverter(ConverterTypeName:="FirebirdSql.Data.Firebird.Design.FbParameterConverter, FirebirdSql.Data.Firebird, Version=1.7.0.0, Culture=neutral, PublicKeyToken=fa843d180294369d")>
NotInheritable Public Class FbParameter
    Inherits MarshalByRefObject
    Implements IDbDataParameter, IDataParameter, ICloneable
[C#]
[ParenthesizePropertyName(NeedParenthesis=True)]
[TypeConverter(ConverterTypeName="FirebirdSql.Data.Firebird.Design.FbParameterConverter, FirebirdSql.Data.Firebird, Version=1.7.0.0, Culture=neutral, PublicKeyToken=fa843d180294369d")]
public sealed class FbParameter : MarshalByRefObject, IDbDataParameter, IDataParameter, ICloneable

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

Parameter names are not case sensitive.

Example

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);

}
                

Requirements

Namespace: FirebirdSql.Data.Firebird

Assembly: FirebirdSql.Data.Firebird (in FirebirdSql.Data.Firebird.dll)

See Also

FbParameter Members | FirebirdSql.Data.Firebird Namespace