© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
23 replies
FraznoFire

Non-Nullable type "required" double up.

Hi Guys, I'm creating a model for use with Entity Framework, VSCode is yelling at me because a property doesn't have "required", but I do have it in the square brackets above. Do these two different versions of "required" overlap? or do they genuinely serve different purposes?
Screenshot_2024-09-01_160909.png
Screenshot_2024-09-01_160921.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

deserialize non-nullable
C#CC# / help
2y ago
Non-Nullable field (WPF)
C#CC# / help
2y ago
✅ Generic nullable type
C#CC# / help
3y ago
✅ Non-nullable property netstandard2.0
C#CC# / help
13mo ago