N0mlss
N0mlss
CC#
Created by N0mlss on 9/21/2023 in #help
❔ Blazor: Get value of nested component
Yeah, that would make sense!!
123 replies
CC#
Created by N0mlss on 9/21/2023 in #help
❔ Blazor: Get value of nested component
So i didnt think about casting CityInt into enum
123 replies
CC#
Created by N0mlss on 9/21/2023 in #help
❔ Blazor: Get value of nested component
yeah, i learnt with database first and just recently started using code first
123 replies
CC#
Created by N0mlss on 9/21/2023 in #help
❔ Blazor: Get value of nested component
Not sure what you mean by that but the concept make sense now
123 replies
CC#
Created by N0mlss on 9/21/2023 in #help
❔ Blazor: Get value of nested component
ahhhh
123 replies
CC#
Created by N0mlss on 9/21/2023 in #help
❔ Blazor: Get value of nested component
the each time a new city is added the code needs to be modified, it doesnt make sense
123 replies
CC#
Created by N0mlss on 9/21/2023 in #help
❔ Blazor: Get value of nested component
But what if it can change overtime from an admin console because some cities arent taken in charge anymore and some are?
123 replies
CC#
Created by N0mlss on 9/21/2023 in #help
❔ Blazor: Get value of nested component
but cities isnt defined in the code since the options comes from database
123 replies
CC#
Created by N0mlss on 9/21/2023 in #help
❔ Blazor: Get value of nested component
but the class user is the following User string name int cityId int age So how do i diffence cityId that is a reference to another table thus an enum from age wich is simply an int
123 replies
CC#
Created by N0mlss on 9/21/2023 in #help
❔ Blazor: Get value of nested component
I guess it is?
123 replies
CC#
Created by N0mlss on 9/21/2023 in #help
❔ Blazor: Get value of nested component
Wait, i know cityId is a foreign key, but i never considered it as an enum 😅
123 replies
CC#
Created by N0mlss on 9/21/2023 in #help
❔ Blazor: Get value of nested component
Yeah
123 replies
CC#
Created by N0mlss on 9/21/2023 in #help
❔ Blazor: Get value of nested component
Lets say the data coming from the db is the following User Name: John Doe City: 4 Then when i pass those datas to the table comp, i would retrieve the city name so it will be a string. But in reality, its not a free choice, since the selection need to come from the database table city. So the select options need to come from the database. In that case it won't be an enum cause we can add or remove available cities as the "application" runs from an admin console. So it cant be an enum
123 replies
CC#
Created by N0mlss on 9/21/2023 in #help
❔ Blazor: Get value of nested component
what if it is a index from the data base refering to another table, how would i retrieve the data to show it in the select inside the table component code?
123 replies
CC#
Created by N0mlss on 9/21/2023 in #help
❔ Blazor: Get value of nested component
for some occasion I want the client to choose from a list of option but normally its a free text. Is that a problem with the logic?
123 replies
CC#
Created by N0mlss on 9/21/2023 in #help
❔ Blazor: Get value of nested component
Got it! But what if the propertie is a string, but it has to be a select for some reason?
123 replies
CC#
Created by N0mlss on 9/21/2023 in #help
❔ Blazor: Get value of nested component
yeah
123 replies
CC#
Created by N0mlss on 9/21/2023 in #help
❔ Blazor: Get value of nested component
Not sure either, I wanted to add a render fragment per columns to decide what will be in each column of the footer
123 replies
CC#
Created by N0mlss on 9/21/2023 in #help
❔ Blazor: Get value of nested component
No description
123 replies
CC#
Created by N0mlss on 9/21/2023 in #help
❔ Blazor: Get value of nested component
...
123 replies