SQL Server · Types · Queries

ArxColumnSet

Definition

Namespace
ARX.SDK.Services
Package
ARX.SDK
C#
public class ArxColumnSet

The columns a read returns: new ArxColumnSet("name", "email"), or All for all of them. The declared id is always read, so the record's RecordId is set.

Constructor

  • ArxColumnSet()

    No columns yet: add them with AddColumn or AddColumns. A read with no columns returns every column (unlike Dynamics XRM, where an empty ColumnSet reads only the id).

  • ArxColumnSet(params string[] columns)

    These columns: new ArxColumnSet("name", "email").

    Parameter Type Description
    columnsparams string[]The column names, in the order to read them.

Properties

  • static ArxColumnSet All { get; }

    Every column of the row source: a new set each time, so changing one never changes another. It replaces the constructor that took a bool, removed in 1.0.0-rc.1: its false read every column too, unlike XRM's ColumnSet(false). An empty new ArxColumnSet() also reads every column; to read only the id, name it: new ArxColumnSet("id").

  • bool AllColumns { get; set; }

    True to read every column of the row source.

  • List<string> Columns { get; }

    The columns to read, by name.

Methods

  • void AddColumn(string column)

    Adds an attribute to read.

    Parameter Type Description
    columnstringThe column to read.
  • void AddColumns(params string[] columns)

    Adds attributes to read.

    Parameter Type Description
    columnsparams string[]The columns to read.

Usage

C#

A line from a verified sample; the full, runnable code is on its page.

Columns = new ArxColumnSet("id", "name")

Retrieve without a catalog, scenario 2

Used in: