4 Using EF Core in business logic
This chapter covers
- Understanding business logic and its use of EF Core
- Looking at three types of business logic, from the easy to the complex
- Reviewing each type of business logic, with pros and cons
- Adding a step that validates the data before it’s written to the database
- Using transactions to daisy-chain code sequences
Real-world applications are built to supply a set of services, ranging from holding a simple list of things on your computer to managing a nuclear reactor. Every real-world problem has a set of rules, often referred to as business rules, or by the more generic name domain rules. (This book uses business rules.)
The code you write to implement a business rule is known as business logic or ...
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.