Code sharing for implementing a general repository design pattern #2512
Hell0wor1d
started this conversation in
Ideas
Replies: 1 comment
-
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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