Add a new parameter into the collection if it doesn't yet exist. If it does, perform an update.

Namespace: Cartella.Interfaces
Assembly: CartellaBase (in CartellaBase.dll) Version: 4.1.0.171 (4.1.0.171)

Syntax

C#
void AddParameter<TDbParameter, TValue>(
	string parameterName,
	string fieldValue
)
where TDbParameter : new(), DbParameter
Visual Basic
Sub AddParameter(Of TDbParameter As {New, DbParameter}, TValue) ( _
	parameterName As String, _
	fieldValue As String _
)
Visual C++
generic<typename TDbParameter, typename TValue>
where TDbParameter : gcnew(), DbParameter
void AddParameter(
	String^ parameterName, 
	String^ fieldValue
)

Parameters

parameterName
Type: System..::..String
Name of the parameter
fieldValue
Type: System..::..String
Value of the parameter as a string

Type Parameters

TDbParameter
Type of class based on DbParameter e.g. SqlParameter. The Parameter type needs to match the operating database engine. This type must be based on a creatable class.
TValue

Field Value

Void

See Also