Version

OperationContext.ParameterFactoryMethod Delegate

Exposes to the consumer the right to determine how IDbDataParameter implementations are created.
Syntax
'Declaration
 
Public Delegate Function OperationContext.ParameterFactoryMethod( _
   ByVal paramName As String, _
   ByVal paramType As DbType, _
   ByVal paramDir As ParameterDirection _
) As IDbDataParameter
public delegate IDbDataParameter OperationContext.ParameterFactoryMethod( 
   string paramName,
   DbType paramType,
   ParameterDirection paramDir
)

Parameters

paramName
paramType
paramDir
Remarks

Ordinarily, the in-scope IDbCommand is used to instantiate database parameters. However, if the application overrides CreateParameter on the WebScheduleDBProvider because their application needs to extend the DataParameterSurrogate then it's necessary to allow the caller to create their own parameters.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also