The Fog from Human Resources
The Fog from Human Resources
Explore posts from servers
CC#
Created by The Fog from Human Resources on 2/12/2025 in #help
How to structure asp.net api versioning and how to handle database migrations
If I just want to add new things I can do it in V1
31 replies
CC#
Created by The Fog from Human Resources on 2/12/2025 in #help
How to structure asp.net api versioning and how to handle database migrations
My versioning will mostly be due to completely different JSON structure in requests and responses that would break V1
31 replies
CC#
Created by The Fog from Human Resources on 2/12/2025 in #help
How to structure asp.net api versioning and how to handle database migrations
Hm
31 replies
CC#
Created by The Fog from Human Resources on 2/12/2025 in #help
How to structure asp.net api versioning and how to handle database migrations
So you're doing: MessageController.cs, MessageControllerV2.cs or? And what about changing DTOs
31 replies
CC#
Created by The Fog from Human Resources on 2/12/2025 in #help
How to structure asp.net api versioning and how to handle database migrations
Thanks a lot btw :SCballin:
31 replies
CC#
Created by The Fog from Human Resources on 2/12/2025 in #help
How to structure asp.net api versioning and how to handle database migrations
Bet
31 replies
CC#
Created by The Fog from Human Resources on 2/12/2025 in #help
How to structure asp.net api versioning and how to handle database migrations
I'll check it out in a bit, thanks
31 replies
CC#
Created by The Fog from Human Resources on 2/12/2025 in #help
How to structure asp.net api versioning and how to handle database migrations
Is there a recommended way to structure versioning? I heard some people just create folders like V1, v2 while others create multiple solutions for each version and then they have a "shared" logic collection
31 replies
CC#
Created by The Fog from Human Resources on 2/12/2025 in #help
How to structure asp.net api versioning and how to handle database migrations
Ah, so you mean like basic logging / analytics and all that stuff?
31 replies
CC#
Created by The Fog from Human Resources on 2/12/2025 in #help
How to structure asp.net api versioning and how to handle database migrations
Also yes I'm aware that I'm probably worrying about things that can be solved at a time when it needs solving (because honestly if these cases apply my project likely succeeded and I will have the resources to let others do this) but I'd just like to have the peace of mind knowing that if shit were to hit the fan I would know how to somewhat stitch together a solution
31 replies
CC#
Created by The Fog from Human Resources on 2/12/2025 in #help
How to structure asp.net api versioning and how to handle database migrations
Also yes, from what I'd say at the moment all database migrations are backwards compatible because it's likely I will only really add things and not remove old fields or smth
31 replies
CC#
Created by The Fog from Human Resources on 2/12/2025 in #help
How to structure asp.net api versioning and how to handle database migrations
Could you explain the part with observability? I don't quite understand what that means :thinker:
31 replies
CC#
Created by The Fog from Human Resources on 2/5/2025 in #help
Cant add ConfigurationBuilder stuff to Dependency Injection
i ended up using ValidateDataAnnotations().ValidateOnStart() since my validation are literally just checking if the variable exists since it cant run without it
247 replies
CC#
Created by The Fog from Human Resources on 2/5/2025 in #help
Cant add ConfigurationBuilder stuff to Dependency Injection
got it, thanks :soPortuguese:
247 replies
CC#
Created by The Fog from Human Resources on 2/5/2025 in #help
Cant add ConfigurationBuilder stuff to Dependency Injection
ah
247 replies
CC#
Created by The Fog from Human Resources on 2/5/2025 in #help
Cant add ConfigurationBuilder stuff to Dependency Injection
only issue im having is that await app.StartAsync() doesnt prevent the program from closing
247 replies
CC#
Created by The Fog from Human Resources on 2/5/2025 in #help
Cant add ConfigurationBuilder stuff to Dependency Injection
ye, it seems to work great so far
247 replies
CC#
Created by The Fog from Human Resources on 2/5/2025 in #help
Cant add ConfigurationBuilder stuff to Dependency Injection
@Sehra @TeBeCo small followup here, ended up using HostApplicationBuilder based on a github repository that uses all this stuff but with Discord.NET already (https://github.com/Misha-133/Discord-Net-Bot-Template), so perchance i was wrong :thinker: also my apologies if i came off rude :SCchaos:, thanks yall tho :SCcatkiss:
247 replies
CC#
Created by The Fog from Human Resources on 2/5/2025 in #help
Cant add ConfigurationBuilder stuff to Dependency Injection
I'm writing my own resolver this isn't worth it
247 replies
CC#
Created by The Fog from Human Resources on 2/5/2025 in #help
Cant add ConfigurationBuilder stuff to Dependency Injection
If you are referring to this
247 replies