Free Web Development Online Tutorials, Learn to Code
.net core and entity framework tutorial, asp core entity framework tutorial, entity framework core for beginner tutorial

Entity Framework Core Tutorial

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.

Prerequisites
  • 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

  1. Code-First
  2. Database-First
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 Release Date
EF Core 2.0 2017-August
EF Core 1.1 2016-November
EF Core 1.0 2016

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: Microsoft.EntityFrameworkCore.SqlServer
  • MySQL, Package: MySql.Data.EntityFrameworkCore
  • SQLite, Package: Microsoft.EntityFrameworkCore.SQLite
  • PostgreSQL, Package: Npgsql.EntityFrameworkCore.PostgreSQL

 
learn entity framework
Entity Framework Core

Entity Framework Interview Questions

Entity Framework C# Examples | Join .Net C# Course