Entity Framework Core 2: Getting Started
This course helps those with experience in earlier versions of EF and EF Core, and developers completely new to Entity Framework. Learn how to build data models with EF Core and use EF Core to let your software interact with data in your databases.
What you'll learn
Entity Framework Core 2 is the newest version of Microsoft's O/RM for performing database persistence in .NET-based software. EF Core is a lightweight and extensible version of Entity Framework that has been written from the ground up.
Whether you are new to EF Core or looking to see how to shift your earlier EF experience to EF Core, this course can help you get started.
First, you'll learn how to define an EF Core data model to act as a bridge between your .NET objects and your database.
Next you'll learn how to interact with the data model using EF Core's various APIs.
Finally, you'll be shown how to incorporate this model into a desktop application based on the .NET Framework and a cross-platform ASP.NET Core MVC application.
By the end of this course, you will be able to build .NET framework, or .NET Core software using EF Core 2. All coding will be done in Visual Studio 2017 in a Windows environment.
Table of contents
- Introduction and Overview 1m
- Setting up the Solution 5m
- Adding EF Core with the NuGet Package Manager 3m
- Creating the Data Model with EF Core 3m
- Specifying the Data Provider and Connection String 3m
- Understanding EF Core Migrations 2m
- Adding Your First Migration 3m
- Inspecting Your First Migration 2m
- Using Migrations to Script or Directly Create the Database 4m
- Recreating the Model in .NET Core 6m
- Adding Many-to-many and One-to-one Relationships 3m
- Reverse Engineering an Existing Database 4m
- Review and Resources 2m
- Introduction and Overview 1m
- EF Core on the Desktop or Device 3m
- The Desktop Application: Windows Presentation Foundation (WPF) 1m
- Creating the WPF Application 4m
- Walking Through the WPF Data Access 6m
- EF Core in ASP.NET Core MVC 5m
- Adding Related Data into the MVC App 3m
- Coding the MVC App’s Relationships 5m
- Review and Resources 2m
Course FAQ
Entity Framework (EF) Core is an open source, cross-platform version of the Entity Framework. EF Core is an object-database mapper for .NET and can serve as an object-relational mapper (O/RM).
EF Core can work with many databases, such as:
- SQL Database
- SQLite
- MySQL
- PostgreSQL
- Azure Cosmos DB
This Entity Framework Core tutorial will teach you how to build data models and let your software interact with data in your DBs. Some of the covered topics include:
- What is Entity Framework Core?
- Where can you build and run apps with EF Core 2?
- How does EF Core work?
- EF Core 2 new features
- Creating a data model and database
- EF Core migrations
- Interacting with EF Core data model
- Querying and saving related data
- Using EF Core in your applications
This Entity Framework Core tutorial is for anyone who learn EF Core 2 for performing database persistence. If you want to shift from EF to EF Core, this course will help you get started.