@@ -73,7 +73,7 @@ public void ConfigureMvc()
7373
7474 var routingConvention = intermediateProvider . GetRequiredService < IJsonApiRoutingConvention > ( ) ;
7575 _mvcBuilder . AddMvcOptions ( opt => opt . Conventions . Insert ( 0 , routingConvention ) ) ;
76- _services . AddSingleton < IControllerResourceMapping > ( routingConvention ) ;
76+ _services . AddSingleton < IControllerResourceMapping > ( routingConvention ) ;
7777 }
7878
7979 /// <summary>
@@ -118,32 +118,32 @@ public void ConfigureServices()
118118 _services . AddSingleton ( new DbContextOptionsBuilder ( ) . Options ) ;
119119 }
120120
121- _services . AddScoped ( typeof ( IEntityRepository < > ) , typeof ( DefaultEntityRepository < > ) ) ;
122- _services . AddScoped ( typeof ( IEntityRepository < , > ) , typeof ( DefaultEntityRepository < , > ) ) ;
121+ _services . AddScoped ( typeof ( IResourceRepository < > ) , typeof ( DefaultResourceRepository < > ) ) ;
122+ _services . AddScoped ( typeof ( IResourceRepository < , > ) , typeof ( DefaultResourceRepository < , > ) ) ;
123123
124- _services . AddScoped ( typeof ( IEntityReadRepository < , > ) , typeof ( DefaultEntityRepository < , > ) ) ;
125- _services . AddScoped ( typeof ( IEntityWriteRepository < , > ) , typeof ( DefaultEntityRepository < , > ) ) ;
124+ _services . AddScoped ( typeof ( IResourceReadRepository < , > ) , typeof ( DefaultResourceRepository < , > ) ) ;
125+ _services . AddScoped ( typeof ( IResourceWriteRepository < , > ) , typeof ( DefaultResourceRepository < , > ) ) ;
126126
127- _services . AddScoped ( typeof ( ICreateService < > ) , typeof ( EntityResourceService < > ) ) ;
128- _services . AddScoped ( typeof ( ICreateService < , > ) , typeof ( EntityResourceService < , > ) ) ;
127+ _services . AddScoped ( typeof ( ICreateService < > ) , typeof ( DefaultResourceService < > ) ) ;
128+ _services . AddScoped ( typeof ( ICreateService < , > ) , typeof ( DefaultResourceService < , > ) ) ;
129129
130- _services . AddScoped ( typeof ( IGetAllService < > ) , typeof ( EntityResourceService < > ) ) ;
131- _services . AddScoped ( typeof ( IGetAllService < , > ) , typeof ( EntityResourceService < , > ) ) ;
130+ _services . AddScoped ( typeof ( IGetAllService < > ) , typeof ( DefaultResourceService < > ) ) ;
131+ _services . AddScoped ( typeof ( IGetAllService < , > ) , typeof ( DefaultResourceService < , > ) ) ;
132132
133- _services . AddScoped ( typeof ( IGetByIdService < > ) , typeof ( EntityResourceService < > ) ) ;
134- _services . AddScoped ( typeof ( IGetByIdService < , > ) , typeof ( EntityResourceService < , > ) ) ;
133+ _services . AddScoped ( typeof ( IGetByIdService < > ) , typeof ( DefaultResourceService < > ) ) ;
134+ _services . AddScoped ( typeof ( IGetByIdService < , > ) , typeof ( DefaultResourceService < , > ) ) ;
135135
136- _services . AddScoped ( typeof ( IGetRelationshipService < , > ) , typeof ( EntityResourceService < > ) ) ;
137- _services . AddScoped ( typeof ( IGetRelationshipService < , > ) , typeof ( EntityResourceService < , > ) ) ;
136+ _services . AddScoped ( typeof ( IGetRelationshipService < , > ) , typeof ( DefaultResourceService < > ) ) ;
137+ _services . AddScoped ( typeof ( IGetRelationshipService < , > ) , typeof ( DefaultResourceService < , > ) ) ;
138138
139- _services . AddScoped ( typeof ( IUpdateService < > ) , typeof ( EntityResourceService < > ) ) ;
140- _services . AddScoped ( typeof ( IUpdateService < , > ) , typeof ( EntityResourceService < , > ) ) ;
139+ _services . AddScoped ( typeof ( IUpdateService < > ) , typeof ( DefaultResourceService < > ) ) ;
140+ _services . AddScoped ( typeof ( IUpdateService < , > ) , typeof ( DefaultResourceService < , > ) ) ;
141141
142- _services . AddScoped ( typeof ( IDeleteService < > ) , typeof ( EntityResourceService < > ) ) ;
143- _services . AddScoped ( typeof ( IDeleteService < , > ) , typeof ( EntityResourceService < , > ) ) ;
142+ _services . AddScoped ( typeof ( IDeleteService < > ) , typeof ( DefaultResourceService < > ) ) ;
143+ _services . AddScoped ( typeof ( IDeleteService < , > ) , typeof ( DefaultResourceService < , > ) ) ;
144144
145- _services . AddScoped ( typeof ( IResourceService < > ) , typeof ( EntityResourceService < > ) ) ;
146- _services . AddScoped ( typeof ( IResourceService < , > ) , typeof ( EntityResourceService < , > ) ) ;
145+ _services . AddScoped ( typeof ( IResourceService < > ) , typeof ( DefaultResourceService < > ) ) ;
146+ _services . AddScoped ( typeof ( IResourceService < , > ) , typeof ( DefaultResourceService < , > ) ) ;
147147
148148 _services . AddSingleton < ILinksConfiguration > ( JsonApiOptions ) ;
149149 _services . AddSingleton ( resourceGraph ) ;
0 commit comments