Exemplo n.º 1
0
        /// <summary> Creates a new DataTable object. </summary>
        /// <param name="context"></param>
        protected override void DoWork(CodeActivityContext context)
        {
            DataTable table = TargetTable.Get(context);

            table.Rows.Add(Row.Get(context));

            Result.Set(context, table);
        }
Exemplo n.º 2
0
        /// <summary> Performs the query requested. </summary>
        /// <param name="context"></param>
        protected override void DoWork(CodeActivityContext context)
        {
            DataTable  table  = TargetTable.Get(context);
            DataColumn column = new DataColumn();

            column.DataType   = ColumnType.Get(context);
            column.ColumnName = ColumnName.Get(context);
            table.Columns.Add(column);

            Result.Set(context, table);
        }