|
DataExtensionsPopulateParametersTDbCommand(TDbCommand, ActionTDbCommand, Object) Method
|
Takes the IDbCommand object and populates it with the given parameters.
Namespace: GSF.DataAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.249-beta+56964f8aed6f3f2e54faec1539f7ce0ba6548fdf
Syntaxpublic static void PopulateParameters<TDbCommand>(
this TDbCommand command,
Action<TDbCommand> deriveParameters,
Object[] values
)
where TDbCommand : IDbCommand
<ExtensionAttribute>
Public Shared Sub PopulateParameters(Of TDbCommand As IDbCommand) (
command As TDbCommand,
deriveParameters As Action(Of TDbCommand),
values As Object()
)
public:
[ExtensionAttribute]
generic<typename TDbCommand>
where TDbCommand : IDbCommand
static void PopulateParameters(
TDbCommand command,
Action<TDbCommand>^ deriveParameters,
array<Object^>^ values
)
[<ExtensionAttribute>]
static member PopulateParameters :
command : 'TDbCommand *
deriveParameters : Action<'TDbCommand> *
values : Object[] -> unit when 'TDbCommand : IDbCommand
JavaScript does not support generic types or methods.
View SourceParameters
- command TDbCommand
- The IDbCommand whose parameters are to be populated.
- deriveParameters ActionTDbCommand
- The DeriveParameters() implementation of the command to use to populate parameters.
- values Object
- The parameter values to populate the IDbCommand parameters with.
Type Parameters
- TDbCommand
- Then IDbCommand type to be used.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
TDbCommand. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
ExceptionsException | Condition |
---|
ArgumentException |
Number of IDbDataParameter arguments in CommandText of this command, identified by '@', do not match number of supplied parameter values -or-
You have supplied more values than parameters listed for the stored procedure.
|
See Also