Install entity framework core in class library project

preview_player
Показать описание
Install Entity Framework Core in a separate .NET standard class library project

Text version of the video

Healthy diet is very important for both body and mind. We want to inspire you to cook and eat healthy. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking.

Slides

ASP.NET Core Razor Pages Text Articles & Slides

ASP.NET Core Razor Pages Tutorial

Angular, JavaScript, jQuery, Dot Net & SQL Playlists

Let's gift education together
Рекомендации по теме
Комментарии
Автор

I have always struggled solving these downgrading packages error and because of that i had to spent endless hours in order to uninstall all the packages and then reinstalling them one by one but you just solved the mystery so easily by just going into csproj file and change it from there! Thank you Venkat!

muhammadwaqasiqbal
Автор

Wow thank you so much for downgrade error explanation as well !

salarkazazi
Автор

When and why did Venkat install EF Core packages into the main project? 😅
I had two different errors:
1. For some reason one of my local folder was added as a local Nuget Package source. I recently deleted this folder and that caused installing any Nuget package met with "The local source '<path of the local folder>' doesn't exist. The solution is to remove this local source from Tools->Options->Nuget Package Manager->Package Sources.
2. As I'm on .Net 5 now, trying to install EF Core version 5+ packages were met with the error message that they are not compatible with .Net Standard 2.0 (the Service project). Solutionis to open the project file and change TargetFramework from netstandard2.0 to netstandard2.1.

conaxlearn
Автор

You don't need Microsoft.EntityFrameworkCore package sir. The provider one includes it.

michaelb.
Автор

Hello sir,

Request you to explain working with identity server 4 in asp.net core

suryaprabha
Автор

Sir, I'm following your lessons by creating the same project in VS2019 and I don't have the and installed in the main project file. Is this a problem? Should I install them? I'm using .net core 3.1

fatihandyildiz