Search Results for

    Show / Hide Table of Contents

    Class MapToAttribute

    An attribute that indicates that a property or a class 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

    | Edit this page 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 or class in the database.

    Properties

    | Edit this page View Source

    Mapping

    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.

    • Edit this page
    • View Source
    In this article
    • Constructors
      • MapToAttribute(string)
    • Properties
      • Mapping
    Back to top Copyright © 2020-2024 Realm
    Generated by DocFX