C
C#•2y ago
Dreams

EF SQL question

if I have the following columns:
id | englishL10n | bosnianL10n | dateCreated
id | englishL10n | bosnianL10n | dateCreated
where id and dateCreated are required should I make englishL10n and bosnianL10n required too? my front end would make a POST one at a time (but it could do both if that's better)
1 Reply
Dreams
DreamsOP•2y ago
but it would GET both at once so should i have a table look like this
id1 | <null> | lorem ipsum | monday
id2 | <null> | lorem ipsum 2 | tuesday
id3 | lorem ipsum | <null> | wednesday
id1 | <null> | lorem ipsum | monday
id2 | <null> | lorem ipsum 2 | tuesday
id3 | lorem ipsum | <null> | wednesday
and my GET would have to somehow combine the id2 and id3 row (since they are the latest dateCreated) ----- is such a GET possible? ignore this if it doesn't make sense 😛
Want results from more Discord servers?
Add your server