In this tutorial you will learn how to work with new Entity Framework in .net core framework, there are some interesting new features.
Entity Framework .Net Core
In this tutorial you will learn how to work with Entity framework Core with Asp.net Core MVC, you can build an ASP.NET Core MVC application that performs basic data access using Entity Framework Core.
- Visual Studio 2017 or later with these workloads
- .NET Core cross-platform development
- ASP.NET and web development
- .NET Core 2.1 SDK.
Things to learn in Entity Framework Core
EF Core vs EF 6
Entity Framework Core is the new form of ORM and improved version of Entity Framework 6 for .NET Core Framework.
EF Core supports two database approaches
EF Core mainly designed for code-first approach and provides little support for the database-first approach because, EF Core does not provide support for visual designer or wizard for DB model, like we used to have EF 6
EF Core Versions
|EF Core Version
|EF Core 2.0
|EF Core 1.1
|EF Core 1.0
Here are few important links for Entity Framework Core
New features in EF Core
Here are some new features of EF Core which were not supported in earlier EF versions
- Batch INSERT, UPDATE, DELETE operations
- Support for IoC (Inversion of Control)
- Alternate keys
- In-memory provider for testing
- Easy relationship configuration
Here are the differences and complete Comparison Entity Framework Core with EF 6
EF Core Database Providers
Entity Framework Core uses different provider models for accessing different databases. You can install EF Core providers using NuGet packages
SQL Server, Package:
MySQL, Package: MySql.Data.EntityFrameworkCore
- SQLite, Package: Microsoft.EntityFrameworkCore.SQLite
PostgreSQL, Package: Npgsql.EntityFrameworkCore.PostgreSQL