absolution183
absolution183
CC#
Created by absolution183 on 3/8/2023 in #help
❔ Using a Custom JSON Converter on NswagStudio's Generated C# Client
And I regenerated the C# client.
4 replies
CC#
Created by absolution183 on 3/8/2023 in #help
❔ Using a Custom JSON Converter on NswagStudio's Generated C# Client
Looks like I found the solution. I added CustomDateTimeOffsetConverter on the nswag config file.
"jsonConverters": [
"CustomDateTimeOffsetConverter"
]
"jsonConverters": [
"CustomDateTimeOffsetConverter"
]
4 replies
CC#
Created by absolution183 on 1/20/2023 in #help
❔ Updating an entity/record with 1 query(?) on Entity Framework
Looks like I'm on EF Core 5
15 replies
CC#
Created by absolution183 on 1/20/2023 in #help
❔ Updating an entity/record with 1 query(?) on Entity Framework
So I ended up seeing Entry() method as well, and this SO answer says that's the one that updates all fields, and Attach() is actually the safer method. https://stackoverflow.com/a/30988176
15 replies
CC#
Created by absolution183 on 1/20/2023 in #help
❔ Updating an entity/record with 1 query(?) on Entity Framework
Doing SELECT and UPDATE instead of just UPDATE?
15 replies
CC#
Created by absolution183 on 1/20/2023 in #help
❔ Updating an entity/record with 1 query(?) on Entity Framework
I'm curious why he would suggest this, instead of just doing the first approach. Is the first approach not optimized or something?
15 replies