Table of Contents

Class ColumnNameAttribute

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

Overrides the column name used when mapping a property or field to a table column.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false)]
public class ColumnNameAttribute : Attribute, _Attribute
Inheritance
ColumnNameAttribute
Implements
Inherited Members

Constructors

ColumnNameAttribute(string)

Initializes a new instance of ColumnNameAttribute with the specified column name.

public ColumnNameAttribute(string columnName)

Parameters

columnName string

The column name to use in the table.

Properties

Name

The column name to use in the table.

public string Name { get; set; }

Property Value

string