DataExtensionsPopulateParametersTDbCommand(TDbCommand, ActionTDbCommand, Object) Method
Takes the
DbCommand object and populates it with the given parameters.
Namespace: Gemstone.Data.DataExtensionsAssembly: Gemstone.Data (in Gemstone.Data.dll) Version: 1.0.167 -- Release Build+a63d2f336930b0b8a2e0d51bc652b0af46e5d00a
public static void PopulateParameters<TDbCommand>(
this TDbCommand command,
Action<TDbCommand> deriveParameters,
Object?[]? values
)
where TDbCommand : DbCommand
public:
[ExtensionAttribute]
generic<typename TDbCommand>
where TDbCommand : DbCommand
static void PopulateParameters(
TDbCommand command,
Action<TDbCommand>^ deriveParameters,
array<Object^>^ values
)
JavaScript does not support generic types or methods.
- command TDbCommand
- The DbCommand 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 DbCommand parameters with.
- TDbCommand
- Then DbCommand type to be used.
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).
| ArgumentException |
Number of DbParameter 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.
|