Skip to content

Commit

Permalink
Fixed documentation of MapTo (#3475)
Browse files Browse the repository at this point in the history
  • Loading branch information
papafe authored Nov 10, 2023
1 parent 7e6f993 commit b4a9906
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Realm/Realm/Attributes/MapToAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
namespace Realms
{
/// <summary>
/// An attribute that indicates that a property should be persisted under a different name.
/// An attribute that indicates that a property or a class should be persisted under a different name.
/// </summary>
/// <remarks>
/// This is useful when opening a Realm across different bindings where code style conventions might differ.
Expand All @@ -30,18 +30,18 @@ namespace Realms
public class MapToAttribute : Attribute
{
/// <summary>
/// Gets the name of the property in the database.
/// Gets the name of the property or class in the database.
/// </summary>
/// <value>The property name.</value>
/// <value>The property or class name.</value>
public string Mapping { get; }

/// <summary>
/// Initializes a new instance of the <see cref="MapToAttribute"/> class.
/// </summary>
/// <param name="mapping">The name of the property in the database.</param>
/// <param name="mapping">The name of the property or class in the database.</param>
public MapToAttribute(string mapping)
{
Mapping = mapping;
}
}
}
}

0 comments on commit b4a9906

Please sign in to comment.