FusedQyou
FusedQyou
CC#
Created by KidKai25 on 6/28/2024 in #help
✅ Is it a good idea to store CSS class as a property in my C# model?
That said, why would the backend need to use frontend css? If this is because it depends on a state, why not use an enum instead?
14 replies
CC#
Created by KidKai25 on 6/28/2024 in #help
✅ Is it a good idea to store CSS class as a property in my C# model?
If you really need this, then there might be a way to have a tool generate the relevant css on both sides
14 replies
CC#
Created by KidKai25 on 6/28/2024 in #help
✅ Is it a good idea to store CSS class as a property in my C# model?
Please don't store frontend specific things like this in the frontend backend. It should be available without communicating to the backend
14 replies
CC#
Created by Rowin ツ on 6/19/2024 in #help
Database suffix builder
Yeah pretty much
33 replies
CC#
Created by Rowin ツ on 6/19/2024 in #help
Database suffix builder
Then you are forced to have a Configuration object 😎
33 replies
CC#
Created by Rowin ツ on 6/19/2024 in #help
Database suffix builder
I would also really consider using actual DI to get the context. I assume this is an API? You can just call AddDBContext and not use factories because there's no reason to
33 replies
CC#
Created by Rowin ツ on 6/19/2024 in #help
Database suffix builder
I would make an actual Configuration object instead
33 replies
CC#
Created by Rowin ツ on 6/19/2024 in #help
Database suffix builder
Well not DI directly, but as a parameter
33 replies
CC#
Created by Rowin ツ on 6/19/2024 in #help
Database suffix builder
Only thing I don't like here is how you inject a primitive type into DI. You should probably have an actual configuration object
33 replies
CC#
Created by Rowin ツ on 6/19/2024 in #help
Database suffix builder
Why not?
33 replies
CC#
Created by Rowin ツ on 6/19/2024 in #help
Database suffix builder
What is acceptable? Assigning default suffixes to tables?
33 replies
CC#
Created by possix on 6/12/2024 in #help
deserialize non-nullable
required requires any value, and null counts here because the pair was specified
15 replies
CC#
Created by possix on 6/12/2024 in #help
deserialize non-nullable
But here's the thing null is a valid value, because you passed something
15 replies