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

Sample Usage of the UnitOfWork Pattern #107

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

aminzare2000
Copy link
Contributor

I added a new service called AddBlogPostCommandHandler to the ApplicationService.Blogs.Commands namespace. This service demonstrates how to use the UnitOfWork pattern in the Zamin Framework.
In this example, I design an API that simultaneously creates a blog and an associated post. To ensure data consistency, both the blog and the post are saved within a single transaction, with the UnitOfWork pattern ensuring seamless transaction management.

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