Show / Hide Table of Contents

PrepareParameter Method (DbProvider)

The parameter to prepare for the query

The type of query being performed

Prepares a parameter for the specified type of query according to the rules of the underlying database type

Syntax

'Declaration

Public Overridable Sub PrepareParameter( _
   ByVal _param_ As IDbDataParameter, _
   ByVal _cmdType_ As CommandType _
) 
public virtual void PrepareParameter( 
   IDbDataParameter _param_,
   CommandType _cmdType_
)

Parameters

param

The parameter to prepare for the query

cmdType

The type of query being performed

Remarks

Different database types and even different query types within the same database type have different requirements for how parameters must be named or formatted. This method allows the specific DbProvider to prepare the parameter as appropriate.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server family

Reference

DbProvider Class
DbProvider Members

Back to top © 2022 Dovetail Software, Inc. - All rights reserved.
Clarify, Amdocs, and related products and names are copyright and trademark of Amdocs, Inc.
.NET, Visual Studio.NET, C#, Visual Basic and related products are trademark of Microsoft corporation.