Learn Entity Framework Core using Code First Methodology in ASP.NET Core 7 (.NET 7)
What you'll learn
Entity Framework Core
Migrations in Entity Framework
Fluent API
Data Annotations
Best practices with Entity Framework Core
Relationships in Entity Framework Core
Bulk operations in Entity Framework Core
Change tracker, RAW SQL, Stored Procs, View, and much more.
Requirements
Basic knowledge of .NET Core
Basic knowledge of c# / SQL
Description
Entity Framework is a term that goes hand by hand with ASP.NET Core. It is one of that technology that is used very often and is not understood most of the time.This course will teach you everything you need to know about using Entity Framework Core with ASP.NET Core. The skills you will learn will help you to build and architect complex ASP.NET Core applications that make full use of Entity Framework Core with Code First. We will start with the basic fundamentals of Entity Framework Core and then we would dive into advanced concepts.Unlike other courses, which are outdated or do not convert all the topics. I have especially taken care to keep the course updated as well as cover topics from beginner to advanced topics with Entity Framework Core.By the end of watching this course, you'll be able to:Understand the basics of Entity Framework CoreUse code-first migrations to push changes to the database, and learn how to manage them.Override code-first conventions (using data annotations and fluent API)Understand how LINQ works and how to filter data.Add, update and remove objectsApply best practices with Entity FrameworkUnderstand relationships in Entity Framework CoreBulk operations in Entity Framework CoreChange tracker, RAW SQL, Stored Procs, View, and much more.
Overview
Section 1: Introduction
Lecture 1 Welcome
Lecture 2 ORM
Lecture 3 Entity Framework Core Introduction
Lecture 4 Tools Needed
Lecture 5 Project Resources
Lecture 6 Create Project
Lecture 7 N Tier
Lecture 8 Nuget Packages and Console Application
Section 2: Migrations
Lecture 9 Create ApplicationDbContext and Book Model
Lecture 10 Configuring Connection String
Lecture 11 Add Migration
Lecture 12 Understanding Migration
Lecture 13 Apply Migration
Lecture 14 Migration Snapshot
Lecture 15 Remove Migration and Update Existing Table
Lecture 16 Assignment 1 - Add Migration
Lecture 17 Remove Nullable
Lecture 18 Assignment 1 - Solution
Lecture 19 Nullable Updates to Table
Lecture 20 Renaming Column
Lecture 21 When to Add Migration?
Lecture 22 Rolling back to Old Migrations
Lecture 23 Reverting back and Deleting Migration
Lecture 24 More Commands
Lecture 25 Seed Data Using Migration
Section 3: Data Annotations
Lecture 26 Update Table and Column Name
Lecture 27 Key and Required Data Annotations
Lecture 28 MaxLength and NotMapped
Lecture 29 EF Core Power Tools
Lecture 30 Assignment 2 - Add Models and Tables
Lecture 31 Assignment 2 Solution - Add Models and Tables
Section 4: Relations in EF Core
Lecture 32 One to One
Lecture 33 Demo - One to One
Lecture 34 Correcting "One to One" Relation
Lecture 35 "One to Many" Relation
Lecture 36 Demo - "One to Many" and Apply Migrations
Lecture 37 Demo - One to Many
Lecture 38 Many to Many - Skip Mapping Table
Lecture 39 Many to Many - Manual Mapping Table
Lecture 40 Relation Mapping Summary
Section 5: Fluent API
Lecture 41 Setup Models for Fluent API
Lecture 42 Table and Column Name in Fluent API
Lecture 43 Required and Primary Key with Fluent API
Lecture 44 Not Mapped and Max Length with Fluent API
Lecture 45 Assignment 3 - Fluent API
Lecture 46 Assignment 3 Solution - Fluent API
Lecture 47 "One to One" Relation
Lecture 48 "One to Many" relation
Lecture 49 "Many to Many" - Skip Mapping Table
Lecture 50 "Many to Many" Manual Table
Lecture 51 How Smart EF Core is?
Lecture 52 Organize Fluent API
Section 6: Filtering Query
Lecture 53 Database Helper Methods
Lecture 54 Get All Books
Lecture 55 Creating Book
Lecture 56 Logging Query
Lecture 57 First and First or Default
Lecture 58 Filter Using Where
Lecture 59 FirstOrDefault
Lecture 60 Find
Lecture 61 Single and SingleOrDefault
Lecture 62 Contains, Like, and Aggregation
Lecture 63 Deferred Execution Overview
Lecture 64 Sorting Data
Lecture 65 Pagination Methods
Lecture 66 Update in EF Core
Lecture 67 Deleting Record in EF Core
Lecture 68 Async Methods
Section 7: EF Core CRUD
Lecture 69 Setup EF Core in Web Project
Lecture 70 Seed Category and Logging in EF Core
Lecture 71 Retrieve using EF Core
Lecture 72 Create and Update Get Action Method
Lecture 73 Create and Update Category EF Core
Lecture 74 Delete Category
Lecture 75 Assignment 4 - Code Should not Throw Exception
Lecture 76 Assignment 4 - Solution - No Exception Thrown