Class AdbExecuteNonQueryTargetFactory
Factory methods that create an
AdbExecuteNonQueryTarget<TInputError>
dataflow worker, which executes an SQL query for each incoming row.
It also has an ErrorOutput port that receives any rows that throw an exception
when creating and executing their queries.
The Input port is linked to (if available) the upstream
output or error output port specified by the factory.
Get the factory from Link when the upstream port is known ahead of time (which is usually the case). Otherwise get it from GetDownstreamFactory<TInput>(), and link the transform or target explicitly using LinkTo(InputPort<TOutput>) or LinkFrom(OutputPortBase<TInput>).
Also see SQL Database Access.
Note: This worker does participate in any transaction currently active on the connection.
Namespace: actionETL.Adb
Assembly: actionETL.dll
Syntax
public static class AdbExecuteNonQueryTargetFactory
Methods
AdbExecuteNonQueryTarget<TInputError>(in DownstreamFactory<TInputError>, String, AdbCommandBuilder)
Initializes a new instance of the
AdbExecuteNonQueryTarget<TInputError>
dataflow worker, which executes an SQL query for each incoming row.
It also has an ErrorOutput port that receives any rows that throw an exception
when creating and executing their queries.
The worker uses CreateSetParametersFromRowAction<T>(AdbParameterCollection) to set parameter values from incoming rows.
The Input port is linked to (if available) the upstream
output or error output port specified by the factory.
Declaration
public static AdbExecuteNonQueryTarget<TInputError> AdbExecuteNonQueryTarget<TInputError>(this in DownstreamFactory<TInputError> downstreamFactory, string workerName, AdbCommandBuilder commandBuilder)
where TInputError : class
Parameters
| Type | Name | Description |
|---|---|---|
| DownstreamFactory<TInputError> | downstreamFactory | The downstream factory, which specifies the parent worker and (optionally) the upstream port to link the "first" input port of this dataflow worker to. Get it from Link when the upstream port is known ahead of time (which is usually the case). Otherwise get it from GetDownstreamFactory<TInput>(), and link the transform or target explicitly using LinkTo(InputPort<TOutput>) or LinkFrom(OutputPortBase<TInput>). |
| String | workerName | Name of the worker.
Set to a prefix plus a trailing
While less useful, set to
The name cannot otherwise contain |
| AdbCommandBuilder | commandBuilder | A builder for the database command. Can be |
Returns
| Type | Description |
|---|---|
| AdbExecuteNonQueryTarget<TInputError> | The newly created and (optionally) linked worker. |
Type Parameters
| Name | Description |
|---|---|
| TInputError | The type of each |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException |
|
| ArgumentNullException |
|
| InvalidOperationException |
|