Chapter 6. Advanced Scenarios

In this chapter, we will cover the following topics:

  • Generating entities from the database
  • Implementing multitenancy
  • Strongly typed bulk operations
  • Handling soft deletes
  • Adding logging
  • Capturing the audit data
  • Retrieving entity metadata
  • Improving MVC applications
  • Hooking infrastructure services
  • Using other databases

Introduction

This chapter will cover more advanced features of Entity Framework Core. These include some scenarios that more seasoned users will miss.

One of these scenarios is bulk updates and deletes. After some basic usage of an ORM, users will easily find out that it doesn't make much sense to load entities just for deleting or modifying them. We will make use of an external library to make it possible.

If you have ...

Get Entity Framework Core Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.