Table of Contents

Class AlterTypeAddFields

Namespace
DataStax.AstraDB.DataApi.Tables
Assembly
DataStax.AstraDB.DataApi.dll

Represents an operation to add new fields to a User Defined Type.

public class AlterTypeAddFields : IAlterTypeOperation
Inheritance
AlterTypeAddFields
Implements
Inherited Members

Constructors

AlterTypeAddFields(Dictionary<string, DataAPIType>)

Initializes a new instance with the specified fields.

public AlterTypeAddFields(Dictionary<string, DataAPIType> fields)

Parameters

fields Dictionary<string, DataAPIType>

The fields to add (field name -> field type).

Properties

Fields

Gets the fields to be added.

public Dictionary<string, string> Fields { get; }

Property Value

Dictionary<string, string>

Methods

GetOperation()

Gets the operation as a tuple (operation name, operation data).

public (string, object) GetOperation()

Returns

(string, object)

A tuple where Item1 is the operation name and Item2 is the operation data.