Code sharing for implementing a general repository design pattern #2512
Hell0wor1d
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
|
Thank you. Yeah, the repository pattern! If someone is interested may be we can merge some into sea-orm as a starting point! |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Here's a problem: How can different repositories be executed within the same transaction? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Code sharing for implementing a general repository design pattern that can perform CRUD operations on all entities. This is useful in the practice of DDD (Domain-Driven Design) pattern. Below is the code:
repository.rs
entity_repository.rs
useage:
Beta Was this translation helpful? Give feedback.
All reactions