Entityframework.docs: No HasNoKey in EF Core?

Created on 3 Apr 2020  Â·  3Comments  Â·  Source: dotnet/EntityFramework.Docs

HasNoKey() is not present in EF Core 2.2. Please include updated information on reading data from tables/Views with No Keys!


Document Details

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

closed-question

All 3 comments

@MCcoder52 We'll look into this, but please note that EF Core 2.2 is now out-of-support

EF Core 2.2 used query types for this:
C# modelBuilder.Query<BlogPostsCount>().ToView("View_BlogPostCounts")

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SychevIgor picture SychevIgor  Â·  4Comments

mjehle82 picture mjehle82  Â·  3Comments

divega picture divega  Â·  3Comments

ajcvickers picture ajcvickers  Â·  4Comments

VirMaker picture VirMaker  Â·  4Comments