You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, data retrieval is distributed across 3 layers:
232
+
232
233
1.`JsonApiController`
233
234
2.`EntityResourceService`
234
235
3.`DefaultEntityRepository`
235
236
236
-
Customization can be done at any of these layers.
237
+
Customization can be done at any of these layers. However, it is recommended that you make your customizations at the service or the repository layer when possible to keep the controllers free of unnecessary logic.
237
238
238
-
#### Custom Controller Methods
239
+
#### Custom Resource Service Implementation
239
240
240
-
TODO
241
+
By default, this library uses Entity Framework. If you'd like to use another ORM that does not implement `IQueryable`, you can inject a custom service like so:
You can implement custom methods for accessing the data by creating an implementation of
270
+
If you want to use EF, but need additional data access logic (such as authorization), you can implement custom methods for accessing the data by creating an implementation of
249
271
`IEntityRepository<TEntity, TId>`. If you only need minor changes you can override the
250
272
methods defined in `DefaultEntityRepository<TEntity, TId>`. The repository should then be
251
273
add to the service collection in `Startup.ConfigureServices` like so:
0 commit comments