Table of Contents

Class DocumentMappingAttribute

Namespace
DataStax.AstraDB.DataApi.SerDes
Assembly
DataStax.AstraDB.DataApi.dll

Marks a property on a collection document as a special field for the database's use.

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

Constructors

DocumentMappingAttribute(DocumentMappingField)

Initializes a new instance of the DocumentMappingAttribute class.

public DocumentMappingAttribute(DocumentMappingField field)

Parameters

field DocumentMappingField

The type of special field this property is mapped to

Properties

Field

The type of special field this property is mapped to

public DocumentMappingField Field { get; }

Property Value

DocumentMappingField