Skip to content

Add read-only DDD repository contracts and EF base types#177

Merged
MarkDerman merged 1 commit into
masterfrom
ReadOnlyRepositories
Jun 5, 2026
Merged

Add read-only DDD repository contracts and EF base types#177
MarkDerman merged 1 commit into
masterfrom
ReadOnlyRepositories

Conversation

@MarkDerman

Copy link
Copy Markdown
Owner

Summary

  • Introduce IReadOnlyRepository<TAggregateRoot> and make IRepository<TAggregateRoot> extend it, so read-only and read-write repository contracts are explicit.
  • Split the EF base implementation into a read-only base with no-tracking query defaults and a write base layered on top.
  • Add a read-only identity repository base and contract tests covering the new inheritance shape.

Testing

  • dotnet test DomainDrivenDesign/Tests/Tests.Odin.DDD.csproj -f net10.0 --filter "Category!=IntegrationTest"
  • dotnet test DomainDrivenDesign/Tests/Tests.Odin.DDD.csproj -f net9.0 --filter "Category!=IntegrationTest"
  • dotnet test DomainDrivenDesign/Tests/Tests.Odin.DDD.csproj -f net8.0 --filter "Category!=IntegrationTest"
  • Validation passed; existing repo warnings about the missing System/Strings project reference and known package advisories remain.

@MarkDerman MarkDerman merged commit 92d9ed6 into master Jun 5, 2026
1 check passed
@MarkDerman MarkDerman deleted the ReadOnlyRepositories branch June 5, 2026 11:35
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