Skip to content

Commit

Permalink
Docs: Add parameter name to AddJsonApi calls (#1296)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkoelman authored Aug 17, 2023
1 parent 4183f62 commit 952518a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/usage/resource-graph.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ You can enable auto-discovery for the current assembly by adding the following a

```c#
// Program.cs
builder.Services.AddJsonApi(discovery => discovery.AddCurrentAssembly());
builder.Services.AddJsonApi(discovery: discovery => discovery.AddCurrentAssembly());
```

### Specifying an Entity Framework Core DbContext
Expand All @@ -44,7 +44,7 @@ Be aware that this does not register resource definitions, resource services and

```c#
// Program.cs
builder.Services.AddJsonApi<AppDbContext>(discovery => discovery.AddCurrentAssembly());
builder.Services.AddJsonApi<AppDbContext>(discovery: discovery => discovery.AddCurrentAssembly());
```

### Manual Specification
Expand Down

0 comments on commit 952518a

Please sign in to comment.