This video is all about setting up Entity Framework Core. Learn about installing the dependencies for the SQL Server provider and enabling reverse engineering from an existing database by installing other packages, such as EntityFrameworkCore.Tools, EntityFrameworkCore.Design, EntityFrameworkCore.SqlServer.Design, and Tools.DotNet.
- [Narrator] We're now ready to install Entity Framework.…So let's go ahead and open up the Package Manager Console.…I'll type in "package",…and we'll type in like we did before.…"Install-Package Microsoft.EntityFrameworkCore.SqlServer".…"Install-Package Microsoft.EntityFrameworkCore.SqlServer".…That's the first thing we want to install.…The packages restore, and everything looks good.…Now to enable reverse engineering from an existing database,…which is going to be our active database,…we're going to need to install a couple of other packages too.…
So I'll hit the up arrow to enter in to my last command,…and I'm going to modify it so that it says "Tools",…and it's in pre-release so I'll add "-pre".…And I'll run that, that looks good.…It's restoring the packages.…The next one will be "EntityFrameworkCore.Design".…We'll install that.…Let that restore.…Next will be…"SqlServer.Design",…and there we go, right there with that IntelliSense.…
I really like that IntelliSense.…It makes life a lot easier.…Next thing we want to do is go to our "project.json" file,…
- Entity Framework (EF) overview
- Uses for EF
- Installing EF
- Creating entities
- Creating the DbContext
- Performing migrations
- Creating an MVC application
- Installing EF packages
- Reverse engineering the model
- Performing context and dependency injection
- Creating the controller and the view
- Using SqlServerTypeMapper
Skill Level Intermediate
Q: This course was updated on 06/23/2017. What changed?
A: The following topics were updated: using the exercise files; Mac install prerequisites; Entity Framework on Mac, part 1; and Entity Framework on Mac, part 2.