@@ -73,7 +73,7 @@ public void ConfigureMvc()
73
73
74
74
var routingConvention = intermediateProvider . GetRequiredService < IJsonApiRoutingConvention > ( ) ;
75
75
_mvcBuilder . AddMvcOptions ( opt => opt . Conventions . Insert ( 0 , routingConvention ) ) ;
76
- _services . AddSingleton < IControllerResourceMapping > ( routingConvention ) ;
76
+ _services . AddSingleton < IControllerResourceMapping > ( routingConvention ) ;
77
77
}
78
78
79
79
/// <summary>
@@ -118,32 +118,32 @@ public void ConfigureServices()
118
118
_services . AddSingleton ( new DbContextOptionsBuilder ( ) . Options ) ;
119
119
}
120
120
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 < , > ) ) ;
123
123
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 < , > ) ) ;
126
126
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 < , > ) ) ;
129
129
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 < , > ) ) ;
132
132
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 < , > ) ) ;
135
135
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 < , > ) ) ;
138
138
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 < , > ) ) ;
141
141
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 < , > ) ) ;
144
144
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 < , > ) ) ;
147
147
148
148
_services . AddSingleton < ILinksConfiguration > ( JsonApiOptions ) ;
149
149
_services . AddSingleton ( resourceGraph ) ;
0 commit comments