csharp
C Sharp GetOffMyLan 4w ago 100%

I think I've finally figured out nullability for required EF navigation properties

This may be common knowledge but I've never seen it online.

[MaybeNull] public Entity Entity { get; set; }

You now get a warning when accessing without a check and when setting to null.

Sadly you still need to ! in quries

3
0
Comments 0