We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cbd2ef commit 2691deaCopy full SHA for 2691dea
src/JsonApiDotNetCore/Data/DefaultEntityRepository.cs
@@ -326,6 +326,9 @@ private IList GetTrackedManyRelationshipValue(IEnumerable<IIdentifiable> relatio
326
{
327
if (relationshipValueList == null) return null;
328
bool _wasAlreadyAttached = false;
329
+ /// if we're not using entity resource separation, we can just read off the related type
330
+ /// from the RelationshipAttribute. If we DO use separation, RelationshipAttribute.DependentType
331
+ /// will point to the Resource, not the Entity, which is not the one we need here.
332
bool entityResourceSeparation = relationshipAttr.EntityPropertyName != null;
333
Type entityType = entityResourceSeparation ? null : relationshipAttr.DependentType;
334
var trackedPointerCollection = relationshipValueList.Select(pointer =>
0 commit comments