File tree 1 file changed +5
-5
lines changed
src/JsonApiDotNetCore/Internal
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- using System . Reflection ;
1
+ using System ;
2
2
using System . Collections . Generic ;
3
3
using System . Linq ;
4
- using System ;
4
+ using System . Reflection ;
5
5
6
6
namespace JsonApiDotNetCore . Internal
7
7
{
@@ -34,9 +34,9 @@ public string GetRelationshipName<TParent>(string relationshipName)
34
34
{
35
35
var entityType = typeof ( TParent ) ;
36
36
return Entities
37
- . SingleOrDefault ( e => e . EntityType == entityType )
38
- . Relationships
39
- . SingleOrDefault ( r => string . Equals ( r . PublicRelationshipName , relationshipName , StringComparison . OrdinalIgnoreCase ) )
37
+ . SingleOrDefault ( e => e . EntityType == entityType )
38
+ ? . Relationships
39
+ . SingleOrDefault ( r => string . Equals ( r . PublicRelationshipName , relationshipName , StringComparison . OrdinalIgnoreCase ) )
40
40
? . InternalRelationshipName ;
41
41
}
42
42
}
You can’t perform that action at this time.
0 commit comments