12 Using entity events to solve business problems
This chapter
- Understanding the types of events that work well with EF Core
- Using domain events to trigger extra business rules
- Using integration events to synchronize two parts of your application
- Implementing an Event Runner and then improving it
In software, the term event covers a wide range of architectures and patterns. Generally, it means “Action A triggers action B.” You saw some C# events in chapter 11, such as events in which an entity state changes (section 11.4.4). But this chapter is about another, quite different type of event, which I call an entity event because it is held in your entity classes. Using an entity event is like putting a message in the entity class for someone ...
Get Entity Framework Core in Action, 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.