AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

adding the [Required] annotations

Open whiteadi opened this issue 6 years ago • 1 comments

got this error on index at line 50: Movie = await movies.ToListAsync(); : Microsoft.EntityFrameworkCore.Query: Error: An exception occurred while iterating over the results of a query for context type 'RazorPagesMovie.Data.RazorPagesMovieContext'. System.Data.SqlTypes.SqlNullValueException: Data is Null. This method or property cannot be called on Null values.

removing the [Required] made the error go away


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

whiteadi avatar Feb 19 '20 12:02 whiteadi

The tutorial works. I'm not sure what step you missed. You might try asking on StackOverflow,.

Rick-Anderson avatar Feb 19 '20 17:02 Rick-Anderson