We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d275202 commit 001e56fCopy full SHA for 001e56f
README.md
@@ -160,4 +160,15 @@ when setting up the services:
160
```
161
services.AddJsonApi<AppDbContext>(
162
opt => opt.DefaultPageSize = 10);
163
-```
+```
164
+
165
+## Defining Custom Data Access Methods
166
167
+You can implement custom methods for accessing the data by creating an implementation of
168
+`IEntityRepository<TEntity, TId>`. If you only need minor changes you can override the
169
+methods defined in `DefaultEntityRepository<TEntity, TId>`. The repository should then be
170
+add to the service collection in `Startup.ConfigureServices` like so:
171
172
173
+services.AddScoped<IEntityRepository<MyEntity,Guid>, MyEntityRepository>();
174
0 commit comments