Dictionary To DataTable Activity

Description:

Converts a dictionary of key/value pairs to a DataTable.

Inheritance Hierarchy:

System.Object
  System.Activities.Activity
    System.Activities.CodeActivity
      Geocortex.Workflow.Activities.DictionaryToDataTable

Function:

This activity allows you to create a DataTable from the data contained in an IDictionary<TKey,TValue>. The table can be represented two ways: where the keys of the dictionary become the columns of the DataTable and the values become the data in the single DataRow of the DataTable; or where the DataTable contains two columns and each key/value pair becomes a DataRow.

In a Workflow:

You would use this activity to convert a IDictionary<TKey,TValue> to a DataTable so that it can then be passed as an input argument into another activity.

Properties:

Name Description

In Arguments

Dictionary

The input Dictionary.

Table Name

The name to assign to the DataTable.

Misc

Display Name

DictionaryToDataTable

You can change the name of an activity to one that describes what it does. A descriptive name can make a workflow easier to interpret and maintain.

Use Key Value Columns

If true represent the data as two columns of keys and values; otherwise represent the data as a single row with each key as a column.

Out Arguments

DataTable

The output DataTable.

Version Information:

Supported from: Geocortex Essentials 3.10.