Show / Hide Table of Contents

    Class MapToAttribute

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

    Inheritance
    Object
    Attribute
    MapToAttribute
    Inherited Members
    Attribute.Equals(Object)
    Attribute.GetHashCode()
    Object.Equals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace:Realms
    Assembly:Realm.dll
    Syntax
    [AttributeUsage(AttributeTargets.Property)]
    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 Source

    MapToAttribute(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 Source

    Mapping

    Gets the name of the property in the database.

    Declaration
    public string Mapping { get; }
    Property Value
    Type Description
    String

    The property name.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2017 Realm
    Generated by DocFX