Aspnetcore.docs: context.Student.Any() should be context.Students.Any() - note the plural: Students

Created on 16 Sep 2019  Â·  3Comments  Â·  Source: dotnet/AspNetCore.Docs

context.Student.Any() should be context.Students.Any() - note plural: Students


Document Details

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

P3 Source - Docs.ms doc-bug

Most helpful comment

This is fixed in the 3.x version of the tutorial -- all references are changed to plural.

All 3 comments

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

Was this page helpful?
0 / 5 - 0 ratings