Search Results for

    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
    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

    | 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
    In This Article
    Back to top Copyright © 2020 Realm
    Generated by DocFX