Show / Hide Table of Contents

Class MapToAttribute

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

Inheritance
System.Object
MapToAttribute
Namespace: Supabase.Core.Attributes
Assembly: Supabase.Core.dll
Syntax
public class MapToAttribute : Attribute

Constructors

| Improve this Doc View Source

MapToAttribute(String, Nullable<String>)

Creates a Mapping to be used internally.

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

Declaration
public MapToAttribute(string mapping, string? formatter = null)
Parameters
Type Name Description
System.String mapping
System.Nullable<System.String> formatter

Properties

| Improve this Doc View Source

Formatter

A formatter to be passed into the method.

Declaration
public string? Formatter { get; set; }
Property Value
Type Description
System.Nullable<System.String>
| Improve this Doc View Source

Mapping

The externally specified target value.

Declaration
public string Mapping { get; set; }
Property Value
Type Description
System.String
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • MapToAttribute(String, Nullable<String>)
  • Properties
    • Formatter
    • Mapping
Back to top Generated by DocFX