Write out TableRelation with table field #192
Replies: 3 comments
-
|
Very valid! |
Beta Was this translation helpful? Give feedback.
-
|
Somewhere, maybe from the good ol' days, I've read that the field should be omitted if it is the primary key. |
Beta Was this translation helpful? Give feedback.
-
|
Since programming in VS Code, I always add the PK field to the table relation, but for another reason: when I invoke "Show references" on the PK field, I want the table relations to be listed. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
To ensure that the reading flow of developers is not interrupted, it is recommended that the table field is also written out in the TableRelation property. This takes the guessing out and you don't have to jump into the table to figure out which is the first pk-field used by the TableRelation property.
Example
Bad code
Good code
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions