Skip to content

Package updates #1274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"isRoot": true,
"tools": {
"jetbrains.resharper.globaltools": {
"version": "2023.1.0",
"version": "2023.1.2",
"commands": [
"jb"
]
},
"regitlint": {
"version": "6.3.10",
"version": "6.3.11",
"commands": [
"regitlint"
]
Expand All @@ -21,13 +21,13 @@
]
},
"dotnet-reportgenerator-globaltool": {
"version": "5.1.19",
"version": "5.1.20",
"commands": [
"reportgenerator"
]
},
"docfx": {
"version": "2.62.2",
"version": "2.67.1",
"commands": [
"docfx"
]
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
<PropertyGroup>
<CoverletVersion>3.2.*</CoverletVersion>
<MoqVersion>4.18.*</MoqVersion>
<TestSdkVersion>17.5.*</TestSdkVersion>
<TestSdkVersion>17.6.*</TestSdkVersion>
</PropertyGroup>
</Project>
3 changes: 3 additions & 0 deletions docs/build-dev.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ if (-Not $NoBuild -Or -Not (Test-Path -Path _site)) {
Invoke-Expression ./generate-examples.ps1
}

dotnet tool restore
VerifySuccessExitCode

dotnet docfx ./docfx.json
VerifySuccessExitCode

Expand Down
2 changes: 1 addition & 1 deletion docs/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"dest": "_site",
"globalMetadataFiles": [],
"fileMetadataFiles": [],
"template": [ "default" ],
"template": [ "default", "modern" ],
"postProcessors": [],
"noLangKeyword": false,
"keepFileLink": false,
Expand Down
5 changes: 3 additions & 2 deletions docs/internals/queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ _since v4.0_

The query pipeline roughly looks like this:

```
HTTP --[ASP.NET]--> QueryString --[JADNC:QueryStringParameterReader]--> QueryExpression[] --[JADNC:ResourceService]--> QueryLayer --[JADNC:Repository]--> IQueryable --[Entity Framework Core]--> SQL
```mermaid
flowchart TB
A[HTTP] -->|ASP.NET| B(QueryString) -->|JADNC:QueryStringParameterReader| C("QueryExpression[]") -->|JADNC:ResourceService| D(QueryLayer) -->|JADNC:Repository| E(IQueryable) -->|Entity Framework Core| F[(SQL)]
```

Processing a request involves the following steps:
Expand Down
64 changes: 28 additions & 36 deletions docs/usage/extensibility/services.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,42 +81,34 @@ In some cases it may be necessary to only expose a few actions on a resource. Fo

This interface hierarchy is defined by this tree structure.

```
IResourceService
|
+-- IResourceQueryService
| |
| +-- IGetAllService
| | GET /
| |
| +-- IGetByIdService
| | GET /{id}
| |
| +-- IGetSecondaryService
| | GET /{id}/{relationship}
| |
| +-- IGetRelationshipService
| GET /{id}/relationships/{relationship}
|
+-- IResourceCommandService
|
+-- ICreateService
| POST /
|
+-- IUpdateService
| PATCH /{id}
|
+-- IDeleteService
| DELETE /{id}
|
+-- IAddToRelationshipService
| POST /{id}/relationships/{relationship}
|
+-- ISetRelationshipService
| PATCH /{id}/relationships/{relationship}
|
+-- IRemoveFromRelationshipService
DELETE /{id}/relationships/{relationship}
```mermaid
classDiagram
direction LR
class IResourceService
class IResourceQueryService
class IGetAllService ["IGetAllService\nGET /"]
class IGetByIdService ["IGetByIdService\nGET /{id}"]
class IGetSecondaryService ["IGetSecondaryService\nGET /{id}/{relationship}"]
class IGetRelationshipService ["IGetRelationshipService\nGET /{id}/relationships/{relationship}"]
class IResourceCommandService
class ICreateService ["ICreateService\nPOST /"]
class IUpdateService ["IUpdateService\nPATCH /{id}"]
class IDeleteService ["IDeleteService\nDELETE /{id}"]
class IAddToRelationshipService ["IAddToRelationshipService\nPOST /{id}/relationships/{relationship}"]
class ISetRelationshipService ["ISetRelationshipService\nPATCH /{id}/relationships/{relationship}"]
class IRemoveFromRelationshipService ["IRemoveFromRelationshipService\nDELETE /{id}/relationships/{relationship}"]
IResourceService <|-- IResourceQueryService
IResourceQueryService<|-- IGetAllService
IResourceQueryService<|-- IGetByIdService
IResourceQueryService<|-- IGetSecondaryService
IResourceQueryService<|-- IGetRelationshipService
IResourceService <|-- IResourceCommandService
IResourceCommandService <|-- ICreateService
IResourceCommandService <|-- IUpdateService
IResourceCommandService <|-- IDeleteService
IResourceCommandService <|-- IAddToRelationshipService
IResourceCommandService <|-- ISetRelationshipService
IResourceCommandService <|-- IRemoveFromRelationshipService
```

In order to take advantage of these interfaces you first need to register the service for each implemented interface.
Expand Down
2 changes: 1 addition & 1 deletion test/TestBuildingBlocks/TestBuildingBlocks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<ItemGroup>
<PackageReference Include="Bogus" Version="34.0.2" />
<PackageReference Include="coverlet.collector" Version="$(CoverletVersion)" PrivateAssets="All" />
<PackageReference Include="FluentAssertions" Version="6.10.0" />
<PackageReference Include="FluentAssertions" Version="6.11.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="$(AspNetVersion)" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="$(EFCoreVersion)" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(TestSdkVersion)" />
Expand Down