Realm Xamarin  v0.81.0
Realm for Xamarin
Public Member Functions | Properties | List of all members
Realms.MapToAttribute Class Reference

An attribute that indicates that a property should be persisted under a different name. More...

Inherits Attribute.

Public Member Functions

 MapToAttribute (string mapping)
 Initializes a new instance of the MapToAttribute class. More...
 

Properties

string Mapping [get, set]
 Gets or sets the name of the property in the database. More...
 

Detailed Description

An attribute that indicates that a property should be persisted under a different name.

This is useful when opening a Realm across different bindings where code style conventions might differ.

Constructor & Destructor Documentation

§ MapToAttribute()

Realms.MapToAttribute.MapToAttribute ( string  mapping)

Initializes a new instance of the MapToAttribute class.

Parameters
mappingThe name of the property in the database.

References Realms.MapToAttribute.Mapping.

Property Documentation

§ Mapping

string Realms.MapToAttribute.Mapping
getset

Gets or sets the name of the property in the database.

Referenced by Realms.MapToAttribute.MapToAttribute().