How to create two tables from the same model #1138
Unanswered
jairoareyes
asked this question in
Q&A
Replies: 2 comments
-
Hi @jairoareyes, since the class type is used for building the "storage" as we call it and for lookup when building the SQL query, you cannot use the same class in two different tables. What you can do is create at least one derived class to disambiguate. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi Jairo. How do you expect to retrieve data with such an approach? E.g. you need to |
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 friend, I'd like to congratulate you on this amazing framework.
I'd like to know if it is possible to have two tables using the same class, and example could be:
I have already tried defining the database and it seems to work, but I don't know how to differentiate each table in a query. Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions