Why the provided "demo" example extends users::Model but not users::Entity? #626
Unanswered
vrozhdestvenskyi
asked this question in
Q&A
Replies: 2 comments
-
@vrozhdestvenskyi see this seaorm guid |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you for getting back to me! |
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
-
Hi all and thank you very much for the great framework!
I've been looking through the Models code at the provided "demo" example and noticed that all the
find*
,create*
,set*
and alike methods extendModel
structs (see e.g. examples/demo/src/models/users.rs). However, I would expect them to belong toEntity
, mainly because of the following 2 reasons:Model
object)My question is, why have you preferred such a design?
I'm just trying to use the framework in a proper way. Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions