SSWConsulting / SSW.SAW.General

SAW Team PBIs that don't belong to any other repo
MIT License
0 stars 0 forks source link

📈 SSW Rules - Do you use the right syntax to solve nullability errors? #10

Open danielmackay opened 1 year ago

danielmackay commented 1 year ago

null! vs default!

danielmackay commented 1 year ago

I've found some info from the EF Docs on this. MS recommend using required , and in the scenarios where this can't be use null!.

Image

Image

Working with nullable reference types - EF Core | Microsoft Learn