Skip to content

Commit 3763338

Browse files
author
Bart Koelman
authored
Removed leftover mappedby property (#679)
1 parent d21532d commit 3763338

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/JsonApiDotNetCore/Models/Annotation/HasManyThroughAttribute.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,14 @@ public class HasManyThroughAttribute : HasManyAttribute
3636
/// <param name="internalThroughName">The name of the navigation property that will be used to get the HasMany relationship</param>
3737
/// <param name="relationshipLinks">Which links are available. Defaults to <see cref="Link.All"/></param>
3838
/// <param name="canInclude">Whether or not this relationship can be included using the <c>?include=public-name</c> query string</param>
39-
/// <param name="mappedBy">The name of the entity mapped property, defaults to null</param>
4039
///
4140
/// <example>
4241
/// <code>
4342
/// [HasManyThrough(nameof(ArticleTags), documentLinks: Link.All, canInclude: true)]
4443
/// </code>
4544
/// </example>
46-
public HasManyThroughAttribute(string internalThroughName, Link relationshipLinks = Link.All, bool canInclude = true, string mappedBy = null)
47-
: base(null, relationshipLinks, canInclude, mappedBy)
45+
public HasManyThroughAttribute(string internalThroughName, Link relationshipLinks = Link.All, bool canInclude = true)
46+
: base(null, relationshipLinks, canInclude)
4847
{
4948
InternalThroughName = internalThroughName;
5049
}
@@ -57,15 +56,14 @@ public HasManyThroughAttribute(string internalThroughName, Link relationshipLink
5756
/// <param name="internalThroughName">The name of the navigation property that will be used to get the HasMany relationship</param>
5857
/// <param name="documentLinks">Which links are available. Defaults to <see cref="Link.All"/></param>
5958
/// <param name="canInclude">Whether or not this relationship can be included using the <c>?include=public-name</c> query string</param>
60-
/// <param name="mappedBy">The name of the entity mapped property, defaults to null</param>
6159
///
6260
/// <example>
6361
/// <code>
6462
/// [HasManyThrough("tags", nameof(ArticleTags), documentLinks: Link.All, canInclude: true)]
6563
/// </code>
6664
/// </example>
67-
public HasManyThroughAttribute(string publicName, string internalThroughName, Link documentLinks = Link.All, bool canInclude = true, string mappedBy = null)
68-
: base(publicName, documentLinks, canInclude, mappedBy)
65+
public HasManyThroughAttribute(string publicName, string internalThroughName, Link documentLinks = Link.All, bool canInclude = true)
66+
: base(publicName, documentLinks, canInclude)
6967
{
7068
InternalThroughName = internalThroughName;
7169
}

0 commit comments

Comments
 (0)