|
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.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax public static void PopulateParameters<TDbCommand>(
this TDbCommand command,
Action<TDbCommand> deriveParameters,
Object[] values
)
where TDbCommand : IDbCommand
public:
[ExtensionAttribute]
generic<typename TDbCommand>
where TDbCommand : IDbCommand
static void PopulateParameters(
TDbCommand command,
Action<TDbCommand>^ deriveParameters,
array<Object^>^ values
)
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).
Exceptions Exception | 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