Skip to content

Commit 6ccb1bb

Browse files
committed
fix: merge
1 parent 57a7971 commit 6ccb1bb

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/JsonApiDotNetCore/Data/DefaultEntityRepository.cs

-11
Original file line numberDiff line numberDiff line change
@@ -208,24 +208,13 @@ private void LoadInverseRelationships(object trackedRelationshipValue, Relations
208208
private bool IsHasOneRelationship(string internalRelationshipName, Type type)
209209
{
210210
var relationshipAttr = _jsonApiContext.ResourceGraph.GetContextEntity(type).Relationships.SingleOrDefault(r => r.InternalRelationshipName == internalRelationshipName);
211-
<<<<<<< HEAD
212211
if(relationshipAttr != null)
213212
{
214213
if (relationshipAttr is HasOneAttribute) return true;
215214
return false;
216215
} else
217216
{
218217
// relationshipAttr is null when we don't put a [RelationshipAttribute] on the inverse navigation property.
219-
=======
220-
if (relationshipAttr != null)
221-
{
222-
if (relationshipAttr is HasOneAttribute) return true;
223-
return false;
224-
}
225-
else
226-
{
227-
// relationshipAttr is null when there is not put a [RelationshipAttribute] on the inverse navigation property.
228-
>>>>>>> master
229218
// In this case we use relfection to figure out what kind of relationship is pointing back.
230219
return !(type.GetProperty(internalRelationshipName).PropertyType.Inherits(typeof(IEnumerable)));
231220
}

0 commit comments

Comments
 (0)