Skip to content
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

Entity Management Improvements #32

Merged
merged 5 commits into from
Nov 4, 2023
Merged

Conversation

tsutomi
Copy link
Member

@tsutomi tsutomi commented Nov 4, 2023

Various improvements to the Entity Management process:

  • Introducing the ITrackingRepository<TEntity, TKey> to obtain the original values of entities where the repository is tracking the changes to the entities returned by queries
  • Adjusting the Update method (and tests) in the EntityManager to implement coherent handling of the Idempotency concept
    • If the repository is tracking changes, obtain the original value of the entity to compare
    • When the IEqualityComparer<TEntity> is provided as a service, use it to compare the original and the new version of the entity
  • Implementation of a new series of tests to ensure that both IRepository<TEntity, TKey> and IRepository<TEntity> are behaving as expected

@tsutomi tsutomi self-assigned this Nov 4, 2023
Copy link

sonarqubecloud bot commented Nov 4, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 22 Code Smells

No Coverage information No Coverage information
3.4% 3.4% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@tsutomi tsutomi merged commit 9a0fbc1 into main Nov 4, 2023
2 of 3 checks passed
@tsutomi tsutomi deleted the entity-manager-improvements branch November 4, 2023 21:48
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