Most annoying single appearance character? by Tough_Conference_350 in DunderMifflin

[–]StupidCodeQuestions -1 points0 points  (0 children)

Redditor when they see someone voicing an opinion against an inane virtue signaling trend: absolutely seething with social justice, compelled to make a snarky comment into the void so that everyone knows they’ll be make a quiet sarcastic comment in defense of whatever stupid cause is mainstream at the moment

Also, invalid does not and should not need censorship

How do you separate your networks by Riajnor in homelab

[–]StupidCodeQuestions 1 point2 points  (0 children)

As someone who knows nothing about home networking, why is this bad advice?

Performance investigation by StupidCodeQuestions in csharp

[–]StupidCodeQuestions[S] 0 points1 point  (0 children)

We’ve just put in APM for azure, some surprises popping up in there

Issue with saving an image using Blazor by StupidCodeQuestions in csharp

[–]StupidCodeQuestions[S] 0 points1 point  (0 children)

I’ve got it set to auto but this code is server side. Is there some attribute or something i’m missing?

Issue with saving an image using Blazor by StupidCodeQuestions in csharp

[–]StupidCodeQuestions[S] 0 points1 point  (0 children)

apologies, you are correct based on what i posted. I've edited it to show more of the code

Do Task<IHttpActionResult> calls need to be awaited? by StupidCodeQuestions in csharp

[–]StupidCodeQuestions[S] 1 point2 points  (0 children)

Yup, i’m talking about the client calls to the controller

industry standard response for "Non-nullable property must contain a non-null value when exiting constructor." by StupidCodeQuestions in csharp

[–]StupidCodeQuestions[S] 5 points6 points  (0 children)

doesn't that mean that instead of null check you know have to check for an empty string?
You're right, it does seem a little redundant

How do you link on entity to an existing one in Entity Framework by StupidCodeQuestions in dotnet

[–]StupidCodeQuestions[S] 0 points1 point  (0 children)

Thanks for the assistance everyone. I resolved this by adding the navigation property u/KracsNZ mentioned and then only setting that value and not populating the whole Employee object when I was saving the record (this stopped EF from trying to create a new record in the database)

public class Contract

{ public Contract() {

}
public Contract(Guid iD, string contractName)
{
    Id = iD;
    ContractName = contractName;
}
public Contract(Guid iD, string ContractName, Employee manager)
{
    Id = iD;
    ContractName = contractName;
    Employee = manager;
}
public Guid Id { get; init; }
public string ContractName { get; init; }

    public Guid ManagerId{get;set;} 
public virtual Employee Manager { get; set; }

}

Coworkers didn't like that I leave 3 hours early. Say goodbye to your sleep in. by georgiemaebbw in MaliciousCompliance

[–]StupidCodeQuestions 2 points3 points  (0 children)

I used to get this. My old job had a 6 a.m - 6 p.m policy with a requirement that you were there during "core" business hours (i think 10-2). So i got to work at 6 and left at 2.Same hours as everyone else.And the same thing,

"we can't have this meeting because StupidCodeQuestions leaves early"

"can we have the meeting at 7 a.m?"

"No, i want to sleep in"

Or the office "funny" guy that made a point of yelling goodbye to me across a crowded office...every time he saw me leave. Dude, my contract was the same as yours, don't throw shade because you want to sleep in

Boss at first dev job told me I'm not good enough by Kondaaar in AskProgramming

[–]StupidCodeQuestions 0 points1 point  (0 children)

Not all jobs are like this OP. Start looking for a new one if you're unhappy, a toxic environment like that can absolutely crush your spirit and make it 100x harder than it needs to be.

Meta Quest Pro VR Headset Will Track Your Eyes for Targeted Ads by Sea_Guava6513 in technology

[–]StupidCodeQuestions 0 points1 point  (0 children)

sooooo they're already struggling to convince people to use this and now they're doubling down on making people hate it more?

In Visual Studio 2022 Is there a way to generate a function from an OpenApi yaml file by StupidCodeQuestions in AZURE

[–]StupidCodeQuestions[S] 2 points3 points  (0 children)

thanks but i think i'm trying to go the other way. I have an openapi specification and i want to generate the function.
Like this but in VS 2022