From d94c1759b2fbd8b251f451fbb29de4bc2bd361ad Mon Sep 17 00:00:00 2001 From: Bart Koelman Date: Tue, 11 Feb 2020 23:56:35 +0100 Subject: [PATCH] Removed leftover `mappedby` property --- .../Models/Annotation/HasManyThroughAttribute.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/JsonApiDotNetCore/Models/Annotation/HasManyThroughAttribute.cs b/src/JsonApiDotNetCore/Models/Annotation/HasManyThroughAttribute.cs index 853a414b8f..f33276cb35 100644 --- a/src/JsonApiDotNetCore/Models/Annotation/HasManyThroughAttribute.cs +++ b/src/JsonApiDotNetCore/Models/Annotation/HasManyThroughAttribute.cs @@ -36,15 +36,14 @@ public class HasManyThroughAttribute : HasManyAttribute /// The name of the navigation property that will be used to get the HasMany relationship /// Which links are available. Defaults to /// Whether or not this relationship can be included using the ?include=public-name query string - /// The name of the entity mapped property, defaults to null /// /// /// /// [HasManyThrough(nameof(ArticleTags), documentLinks: Link.All, canInclude: true)] /// /// - public HasManyThroughAttribute(string internalThroughName, Link relationshipLinks = Link.All, bool canInclude = true, string mappedBy = null) - : base(null, relationshipLinks, canInclude, mappedBy) + public HasManyThroughAttribute(string internalThroughName, Link relationshipLinks = Link.All, bool canInclude = true) + : base(null, relationshipLinks, canInclude) { InternalThroughName = internalThroughName; } @@ -57,15 +56,14 @@ public HasManyThroughAttribute(string internalThroughName, Link relationshipLink /// The name of the navigation property that will be used to get the HasMany relationship /// Which links are available. Defaults to /// Whether or not this relationship can be included using the ?include=public-name query string - /// The name of the entity mapped property, defaults to null /// /// /// /// [HasManyThrough("tags", nameof(ArticleTags), documentLinks: Link.All, canInclude: true)] /// /// - public HasManyThroughAttribute(string publicName, string internalThroughName, Link documentLinks = Link.All, bool canInclude = true, string mappedBy = null) - : base(publicName, documentLinks, canInclude, mappedBy) + public HasManyThroughAttribute(string publicName, string internalThroughName, Link documentLinks = Link.All, bool canInclude = true) + : base(publicName, documentLinks, canInclude) { InternalThroughName = internalThroughName; }