Video description
We begin with an introduction to Entity Framework Core, followed by an essential update on .NET 8, setting the stage for the detailed exploration that follows. The course systematically guides you through the Environment Setup, ensuring you have the necessary tools and understanding to proceed.
Begin with basic concepts and progressively advance to more complex topics. The course covers project setup in both Visual Studio and Visual Studio Code, explaining data models, database context, and database support in EF Core. You'll learn about code-first development, migrations, and even reverse engineering an existing database, providing a well-rounded understanding of database interactions using EF Core.
Then we delve into querying a database, discussing everything from basics and filters to advanced querying techniques and performance enhancement tips. You'll gain insights into manipulating data, handling changes, and managing database migrations effectively. Next, we will take a deep dive into database relationships, and you'll explore various types of relationships and their practical implementation.
As you'll work with raw SQL, views, stored procedures, and the integration of EF Core with ASP.NET Core. The course concludes with a look at data validation, database transactions, and handling data concurrency issues.
What you will learn
- Set up and configure your development environment for EF Core
- Create, query, and manipulate databases using EF Core techniques
- Understand and implement various database relationships and loading methods
- Execute advanced querying with LINQ and raw SQL in EF Core
- Integrate EF Core with ASP.NET Core for dynamic web applications
- Manage database changes and migrations efficiently
Audience
This course is ideal for students eager to learn Entity Framework through practical, hands-on experience. It specifically caters to those who wish to understand the workings of EF Core in a focused manner, without the complexities of patterns and user interface design. Familiarity with C# will be crucial as it is the primary language used in conjunction with Entity Framework Core. Additionally, a basic grasp of database development is essential.
About the Author
Trevoir Williams: Trevoir Williams, a dynamic software and systems engineer, possesses an unwavering commitment to imparting his extensive knowledge to students worldwide. He boasts a robust academic background with a master's degree in computer science, specializing in Software Development, complemented by multiple Microsoft Azure Certifications.
Trevoir's illustrious career spans various roles, including software consulting, engineering, database development, cloud systems, and server administration. He also excels in academia as a lecturer and uniquely blends his technical expertise with his creative pursuits as a musician.
Dedicated to educating in IT and development, Trevoir excels in guiding students to acquire contemporary industry-relevant knowledge through practical application, ensuring they remain at the forefront of technological advancements.
Table of contents
- Chapter 1 : Introduction
- Chapter 2 : Environment Setup
-
Chapter 3 : Getting Started with Entity Framework Core
- Section Overview
- Setup Project Solution - Visual Studio
- Setup Project Solution - Visual Studio Code + Dotnet CLI
- What are Data Models?
- Creating the Data Models with EF Core
- Understanding the Database Context
- Adding a Database Context
- EF Core and Database Support
- Specifying the Data Provider and Connection String
- Understanding Code First Development and Migrations
- Setup Console App Project
- Adding a Migration
- Generating a Database (Code-First)
- Understanding Database First Development
- Reverse Engineer Existing Database
- Seeding Data
- Section Review
-
Chapter 4 : Using Entity Framework Core to Query a Database
- Section Overview
- Adding Verbose Logging to EF Core's Workload
- Fix: Database Connection String Refactor
- LINQ as Entity Framework Core Syntax
- Querying Basics
- Synchronous vs. Asynchronous Syntax
- Querying for a Single Record
- Add Filters to Queries
- Additional Filtering Features
- Alternative LINQ Syntax
- Aggregate Methods
- Group By
- Order By
- Skip and Take
- Projections and Custom Data Types
- Tracking Vs. No Tracking (Enhancing Performance)
- IQueryables vs List Types
- Efficient Querying Tips and Tricks
- Section Review
- Chapter 5 : Using Entity Framework Core to Manipulate Data
- Chapter 6 : Handling Database Changes and Migrations
-
Chapter 7 : Interacting With Related Records
- Section Overview
- Database Relationships and Entity Framework Core
- One to Many Relationships
- Adding One-To-Many Relationships
- View Diagram with Entity Framework Core Tools
- Many to Many Relationships
- Adding Many-To-Many Relationships
- Understanding One-To-One Relationships
- Adding One-To-One Relationships
- Update Database With Relationships
- Inserting Related Data
- Understanding Loading Methods
- Including Related Data with Eager Loading
- Including Related Data with Explicit Loading
- Including Related Data with Lazy Loading
- Filtering on Related Records
- Projections and Anonymous Data Types
- Understanding Delete Behaviors
- Section Review
- Chapter 8 : Working With Raw SQL, Views and Stored Procedures
- Chapter 9 : ASP.NET Core and EF Core
- Chapter 10 : Additional Features and Considerations
- Chapter 11 : Conclusion
Product information
- Title: Entity Framework Core - A Full Tour
- Author(s):
- Release date: December 2023
- Publisher(s): Packt Publishing
- ISBN: 9781803242231
You might also like
book
Entity Framework Core in Action, Second Edition
Entity Framework Core in Action, Second Edition is an in-depth guide to reading and writing databases …
video
Learning Entity Framework Core
Entity Framework is a highly recommended Object Relation Mapping tool used to build complex systems. This …
book
Practical Entity Framework Core 6: Database Access for Enterprise Applications
Take a developer journey that paves the way to enterprise-level database access from .NET and C# …
video
C# Console and Windows Forms Development with Entity Framework
C#, the most versatile programming language in the .NET framework, allows developers to build Windows, web, …