@@ -31,7 +31,7 @@ public TopLevelLinks GetTopLevelLinks(ResourceContext primaryResource)
31
31
{
32
32
TopLevelLinks topLevelLinks = null ;
33
33
if ( ShouldAddTopLevelLink ( primaryResource , Link . Self ) )
34
- topLevelLinks = new TopLevelLinks { Self = GetSelfTopLevelLink ( primaryResource . EntityName ) } ;
34
+ topLevelLinks = new TopLevelLinks { Self = GetSelfTopLevelLink ( primaryResource . ResourceName ) } ;
35
35
36
36
if ( ShouldAddTopLevelLink ( primaryResource , Link . Paging ) )
37
37
SetPageLinks ( primaryResource , ref topLevelLinks ) ;
@@ -80,7 +80,7 @@ private string GetSelfTopLevelLink(string resourceName)
80
80
81
81
private string GetPageLink ( ResourceContext primaryResource , int pageOffset , int pageSize )
82
82
{
83
- return $ "{ GetBasePath ( ) } /{ primaryResource . EntityName } ?page[size]={ pageSize } &page[number]={ pageOffset } ";
83
+ return $ "{ GetBasePath ( ) } /{ primaryResource . ResourceName } ?page[size]={ pageSize } &page[number]={ pageOffset } ";
84
84
}
85
85
86
86
@@ -101,12 +101,12 @@ public RelationshipLinks GetRelationshipLinks(RelationshipAttribute relationship
101
101
var childNavigation = relationship . PublicRelationshipName ;
102
102
RelationshipLinks links = null ;
103
103
if ( ShouldAddRelationshipLink ( parentResourceContext , relationship , Link . Related ) )
104
- links = new RelationshipLinks { Related = GetRelatedRelationshipLink ( parentResourceContext . EntityName , parent . StringId , childNavigation ) } ;
104
+ links = new RelationshipLinks { Related = GetRelatedRelationshipLink ( parentResourceContext . ResourceName , parent . StringId , childNavigation ) } ;
105
105
106
106
if ( ShouldAddRelationshipLink ( parentResourceContext , relationship , Link . Self ) )
107
107
{
108
108
links = links ?? new RelationshipLinks ( ) ;
109
- links . Self = GetSelfRelationshipLink ( parentResourceContext . EntityName , parent . StringId , childNavigation ) ;
109
+ links . Self = GetSelfRelationshipLink ( parentResourceContext . ResourceName , parent . StringId , childNavigation ) ;
110
110
}
111
111
112
112
return links ;
0 commit comments