FCFL.NET Common Library - API Reference
CreateParameter Method (DbProvider)

The name of the parameter to add (without the database-specific bind variable prefix such as @ for Microsoft SQL Server or : for Oracle)
The value of the parameter that will be passed to the database as part of the query
Creates a new IDbDataParameter of the specific underlying type for this database provider type (i.e. SqlHelper for MSSQL, etc)
Syntax
'Declaration
 
Public MustOverride Function CreateParameter( _
   ByVal name As String, _
   ByVal value As Object _
) As IDbDataParameter
public abstract IDbDataParameter CreateParameter( 
   string name,
   object value
)

Parameters

name
The name of the parameter to add (without the database-specific bind variable prefix such as @ for Microsoft SQL Server or : for Oracle)
value
The value of the parameter that will be passed to the database as part of the query

Return Value

An IDbDataParameter instance which can be added to a parameter collection for a query
Remarks
See DataParameterCollection for more information on how to use data parameters.

Requirements

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

See Also

Reference

DbProvider Class
DbProvider Members
DataParameterCollection Class

 

 


© 2010 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.

Send comments on this topic.