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 SourceMapToAttribute(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 SourceFormatter
A formatter to be passed into the
Declaration
public string? Formatter { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.String> |
Mapping
The externally specified target value.
Declaration
public string Mapping { get; set; }
Property Value
Type | Description |
---|---|
System.String |