Table of Contents

Class MapToAttribute

Namespace
Supabase.Core.Attributes
Assembly
Supabase.Core.dll

Used internally to add a string value to a C# field.

[AttributeUsage(AttributeTargets.Field)]
public class MapToAttribute : Attribute
Inheritance
MapToAttribute
Inherited Members

Constructors

MapToAttribute(string, string?)

Creates a Mapping to be used internally.

For example, specifying an Enum that has a different string value elsewhere.

public MapToAttribute(string mapping, string? formatter = null)

Parameters

mapping string
formatter string

Properties

Formatter

A formatter to be passed into the ToString() method.

public string? Formatter { get; set; }

Property Value

string

Mapping

The externally specified target value.

public string Mapping { get; set; }

Property Value

string