Part 2 Entity Framework in depth

 

Part 1 showed how you might build an application by using EF Core. Part 2 covers how to configure EF Core exactly the way you need it and the different ways you can change (EF Core term: migrate) your database. It also introduces you to advanced features that can make your software more efficient in both development and performance terms. Part 2 is more of a reference section that covers each part of EF Core in detail, but (I hope) not in a boring way.

Chapter 7 introduces the way that EF Core configures itself when it’s first used so that you know where and how to apply any of your own EF Core configurations. The chapter focuses on nonrelational properties, with types such as int, string, and DateTime.

Chapter 8 shows how EF Core finds and configures relationships. EF Core does a good job of configuring most relationships for you, but it does need help on some, and you’ll want to configure others because EF Core’s default settings don’t suit your needs.

Chapter 9 covers the important issue of matching the database to your EF Core configuration, with either the software or the database SQL in control. It deals with different ways to safely alter—that is, migrate—a database as your application evolves.