A C# nullable reference types policy

At work, we’re full steam ahead with .NET Core 3 and, thusly, nullable reference types. And we’ve come to realize that we need some kind of policy to dictate how nullable reference types will affect our code. It’s not just a matter of turning the feature on — you have to make careful decisions about […]

Entity Framework Core Navigation Property vs Foreign Key Property — FIGHT!

Suppose we have an entity A that has a direct, 1:1, relationship with entity B. So… What happens if we try to assign two different Bs to an A like this? b1 wins. A.B is set to b1 and A.BId is set to b1.Id. How did I know that? I wrong a bunch of unit […]

Scroll Up