Using the code as shown to add validation to the movie.cs, the build fails and says that the namespace we're working in doesn't define 'Movie'.
I was able to use the validation code from the MVC web app tutorial to move forward, but replacing all the code with the #if MovieDatRatingDA code results in all grey text in Visual Studio's text editor.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@oxwilder that's a great error message. VS should help you find your mistake.
In this file, would moving the region outside of the namespace resolve it, or does this file have uses in other places? When I tried to reproduce, I know that once I included the namespace everything was gravy.
Most helpful comment
@oxwilder that's a great error message. VS should help you find your mistake.