After you install everything that's needed, create the console app using Yoeman and choose the correct project type. Then, move on to restoring basic dependencies and installing Entity Framework Core. Plus, learn about the specific tools needed for the command line, as well as the SQLite database provider.
- [Instructor] All right, we are ready to create our app.…The first thing we want to check is…to make sure that you are in a folder like projects…that you're going to create your application in.…Within projects, I will create a subfolder…called Mac EF Console App by typing…in mkdir MacEFConsoleApp.…Now I'll navigate into that directory…by typing the first three letters and entering asterisk.…
From here, I can create a new dot net app that's a console.…Dotnet new console.…Created successfully, great so now I can launch code…by entering code space period and it should launch.…Now if for some reason it doesn't launch for you…and you get a error, what you most likely need to do…is to go to view, command palette and type…in command and install code in the command path…by choosing this first option here.…
At this point right now, I can open…up visual studio codes terminal by holding the control key…and hitting the back to key,…the back to key looks like reverse apostrophe.…Within here, I will restore our dependencies…
- 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.