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
Properties
Formatter
A formatter to be passed into the ToString() method.
public string? Formatter { get; set; }
Property Value
Mapping
The externally specified target value.
public string Mapping { get; set; }