Class MapToAttribute
An attribute that indicates that a property should be persisted under a different name.
Namespace: Realms
Assembly: Realm.dll
Syntax
public class MapToAttribute : Attribute
Remarks
This is useful when opening a Realm across different bindings where code style conventions might differ.
Constructors
| Improve this Doc View SourceMapToAttribute(String)
Initializes a new instance of the MapToAttribute class.
Declaration
public MapToAttribute(string mapping)
Parameters
Type | Name | Description |
---|---|---|
String | mapping | The name of the property in the database. |
Properties
| Improve this Doc View SourceMapping
Gets the name of the property in the database.
Declaration
public string Mapping { get; }
Property Value
Type | Description |
---|---|
String | The property name. |