Awesome Entity Framework Core

{Awesome Works in Progress}

Official Websites


Videos 📺

Entity Framework Core

Entity Framework Core 6.0

Entity Framework Core 5.0

Entity Framework Core

Entity Framework Core In-Depth

Misc


Learning

Tutorials

Installation (PMC)

  • Installing Entity Framework Core
    • Install-Package Microsoft.EntityFrameworkCore
    • Install-Package Microsoft.EntityFrameworkCore.SqlServer
    • Install-Package Microsoft.EntityFrameworkCore.Tools
    • Install-Package Microsoft.EntityFrameworkCore.Design

Connection String

Tools Commands

  • Entity Framework Core tools reference
    • Examples:
      • Scaffold-DbContext "Server=(local);Database=AdventureWorks;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -t Production.Product, Production.ProductSubcategory -DataAnnotations
      • Script-Migration -To Initial
      • Script-Migration -From 0
      • Update-Database -Migration 0 (The number 0 is a special case that means before the first migration and causes all migrations to be reverted.)

Scaffolding (Database First)

Data Annotations and Fluent API

Validation


Database Providers

InMemory

SQL Server

SQLLocalDB

SQLite


Articles

EF with ASP.NET MVC


Advanced