EntityFrameworkCore does not exist in the namespace Microsoft

I solved this problem by: (1) Right clicking the project in the Solution Explorer (2) Clicking unload project (3) Click edit the .csproj and check if there is a Package Reference to EF (4) Right clicking the project again in the Solution Explorer (5) Then clicked reload project Now it recognizes EntityFrameworkCore and there are … Read more

The term ‘Add-migration’ is not recognized – VS2017 and EntityFrameworkCore

The solution that worked for me after trying a whole raft of other solutions posted, was to: right click on my project select Manage Nuget Packages select the browse tab thick Include prerelease check box install the Microsoft.EntityFrameworkCore.Tools N.b that aspnetcore project in visual studio 2017 do not seem to have the project.json file.

Using EF Core ThenInclude() on Junction tables

but I get an ICollection in the last lambda displayed, so I obviously need the Select() No, you don’t. EF Core Include / ThenInclude totally replace the need of Select / SelectMany used in EF6. Both they have separate overloads for collection and reference type navigation properties. If you use the overload with collection, ThenInclude … Read more

The EF Core tools version ‘3.1.2’ is older than that of the runtime ‘3.1.7’. Update the tools for the latest features and bug fixes

UPDATE This turned out to be an issue with a lot of facets. Main problem was Visual Studio: https://developercommunity.visualstudio.com/content/problem/438312/vs-2019-preview2-after-saving-edmx-code-is-not-gen.html Please try dotnet tool update –global dotnet-ef and restart Visual Studio