Freigeben über


How to install Entity Framework Core 2.1

I wrote this post about installing ASP.NET Core 2.1, plus these others which may be of interest:

After creating my ASP.NET Core 2.1 web application, I right-clicked Dependencies –> Manage NuGet Packages… as seen in Figure 1.

image

Figure 1, how to install Entity Framework Core

Then, select Browse and search for “Microsoft.EntityFrameworkCore” and you will get a list of the packages, something like Figure 2.

image

Figure 2, how to install Entity Framework Core

I selected Microsoft.EntityFrameworkCore then installed it, Figure 3.

image

Figure 3, how to install Entity Framework Core

Then I can see that the NuGet package has been added to my ASP.NET Core 2.1 Web project, Figure 4.

image

Figure 4, how to install Entity Framework Core