Class MapToAttribute
An attribute that indicates that a property or a class should be persisted under a different name.
Namespace: Realms
Assembly: Realm.dll
Syntax
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Property)]
public class MapToAttribute : Attribute
Remarks
This is useful when opening a Realm across different bindings where code style conventions might differ.
Constructors
| Edit this page 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 or class in the database. |
Properties
| Edit this page View SourceMapping
Gets the name of the property or class in the database.
Declaration
public string Mapping { get; }
Property Value
Type | Description |
---|---|
string | The property or class name. |