context.Student.Any() should be context.Students.Any() - note plural: Students
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
It should not, because SchoolContext has property Student. So, the code is working.
Otherwise we need to rename Student property to Students with all references.
This is fixed in the 3.x version of the tutorial -- all references are changed to plural.
Thanks tdykstra - that works
Most helpful comment
This is fixed in the 3.x version of the tutorial -- all references are changed to plural.