Skip to content

Update DtoVsPoco sample to .NET 11 - #2390

Merged
vladimir-pecanac-main merged 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/75314-difference-dto-poco
Nov 20, 2026
Merged

vladimir-pecanac-main merged 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/75314-difference-dto-poco

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Retargets the DtoVsPoco sample and its tests to net11.0, updates Mapster to 10.0.14 and the test packages (xunit 2.9.3, xunit.runner.visualstudio 4.0.1, Microsoft.NET.Test.Sdk 18.12.0, coverlet.collector 10.1.0), removes the Swashbuckle package the code never used along with the IIS Express profile, makes Person.IsAdult() take the birthday into account, returns Task.FromResult directly in PersonService, switches FakeDataStore to a collection expression and all files to file-scoped namespaces, and adds three tests (DTO mapping values and two IsAdult cases).

Retarget both projects to net11.0, update Mapster to 10.0.14 and the test packages, remove the unused Swashbuckle package and the IIS Express profile, make IsAdult() birthday-aware, drop the redundant async in PersonService, use a collection expression and file-scoped namespaces, and add three tests.
@vladimir-pecanac-main
vladimir-pecanac-main merged commit c085825 into CodeMazeBlog:main Nov 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant