Trinitek
Trinitek
CC#
Created by Alex on 9/19/2024 in #help
help me find correct response model
given your schema allows for an unlimited number of custom attributes, I'd probably do this like
record ProductVariant(
int Id,
Dictionary<string, string> Attributes,
int Quantity,
int Price)

record ProductPageDTO(
ProductVariant[] Variants)
record ProductVariant(
int Id,
Dictionary<string, string> Attributes,
int Quantity,
int Price)

record ProductPageDTO(
ProductVariant[] Variants)
let the view generate an attribute group for each key, add a button for each value under that key, and if a product variant is missing a key-value pair generate a "None" button to represent that
3 replies
CC#
Created by shahinjabbar on 9/3/2024 in #help
hey guys. please take a look at this SO question. thanks
I know you like your cat emojis but this is not constructive or respectful to the person trying to ask the question.
5 replies
CC#
Created by seba on 1/24/2024 in #help
im newbie on pc help!
I don't think this is something we want to help you with here
12 replies
CC#
Created by albassort on 11/13/2023 in #help
Scaffolding converting sql DateTime from sqlite to byte[], how can I keep it as long / C# DateTime
what does your entity model and context modelbuilder look like? it should use TEXT by default
10 replies
CC#
Created by jim on 11/6/2023 in #help
❔ Professor issue.
I'm hoping you remember to not do whatever you did to fuck up your csproj file, so this wasn't a complete waste of time
113 replies
CC#
Created by jim on 11/6/2023 in #help
❔ Professor issue.
also my thought; open your csproj in a text editor, what does it look like?
113 replies
CC#
Created by Puck on 10/29/2023 in #help
❔ .NET Framework 4.8 Vs .Net Core for Longterm Support
for windows app devs, we were looking specifically at "build" numbers in this table https://en.wikipedia.org/wiki/Windows_10_version_history which is different from the version or codename, and you can crosscheck that with https://learn.microsoft.com/en-us/windows/uwp/whats-new/windows-10-build-19041 (see sidebar)
104 replies
CC#
Created by Puck on 10/29/2023 in #help
❔ .NET Framework 4.8 Vs .Net Core for Longterm Support
yeah well, instead of counting Windows versions, we had to count build numbers to track breaking changes and new features
104 replies
CC#
Created by Puck on 10/29/2023 in #help
❔ .NET Framework 4.8 Vs .Net Core for Longterm Support
ah I see
104 replies
CC#
Created by Puck on 10/29/2023 in #help
❔ .NET Framework 4.8 Vs .Net Core for Longterm Support
and not build it once and then try to update it 6 years from now
104 replies
CC#
Created by Puck on 10/29/2023 in #help
❔ .NET Framework 4.8 Vs .Net Core for Longterm Support
you ought to make an effort to bump the NET version every year if you can
104 replies
CC#
Created by Puck on 10/29/2023 in #help
❔ .NET Framework 4.8 Vs .Net Core for Longterm Support
if you're running on 7 or 8, it's on you to test that your app works at this point
104 replies
CC#
Created by Puck on 10/29/2023 in #help
❔ .NET Framework 4.8 Vs .Net Core for Longterm Support
nightmare
104 replies
CC#
Created by Puck on 10/29/2023 in #help
❔ .NET Framework 4.8 Vs .Net Core for Longterm Support
imagine if your .NET 5 app magically stopped working after the EOL date
104 replies
CC#
Created by proot on 10/21/2023 in #help
✅ Compilation to standalone exe
$singlefile
8 replies
CC#
Created by joren on 10/21/2023 in #help
✅ Anonymous type
anon types are old, introduced in C# 3
23 replies