Collection Contents Previous Next PDF

UltraLite.NET User's Guide

iAnywhere.Data.UltraLite namespace

ULParameter class


Represents a parameter to a ULCommand class.

Prototypes 

' Visual Basic
NotInheritable Public Class ULParameter
  Inherits MarshalByRefObject
  Implements IDbDataParameter, IDataParameter

// C#
public sealed class ULParameter :
  MarshalByRefobject, IDbDataParameter, IDataParameter

Remarks 

A ULParameter object can be created directly using one of its many constructors, or using the CreateParameter method method. Because of the special treatment of the 0 and 0.0 constants and the way overloaded methods are resolved, it is highly recommended that you explicitly cast constant values to type object when using the ULParameter constructor constructor. For example:

' Visual Basic
Dim p As ULParameter = New ULParameter( "", CType( 0, Object ) )

// C#
ULParameter p = new ULParameter( "", (object)0 );

Parameters (including those created by CreateParameter method) must be added to a Parameters property collection to be used. All parameters are treated as positional parameters and are used by a command in the order that they were added.

In UltraLite.NET, parameters can only be used as IN parameters and all mapping information is ignored. Only the Value property property is important.

Implements: [external link] IDbDataParameter, [external link] IDataParameter


ULParameter members
ULParameter constructor
ULParameter constructor
ULParameter constructor
ULParameter constructor
ULParameter constructor
ULParameter constructor
DbType property
Direction property
IsNullable property
Offset property
ParameterName property
Precision property
Scale property
Size property
SourceColumn property
SourceVersion property
ULDbType property
Value property
ToString method

Collection Contents Previous Next PDF