Entity Framework Core Cookbook - Second Edition
Table of Contents
Entity Framework Core Cookbook - Second Edition
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Improving Entity Framework in the Real World
Introduction
Improving Entity Framework by using a code-first approach
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
Convention over configuration
Model-View-Controller
Single Responsibility Principle
Provider Model
Testing
See also
Unit testing and mocking
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
One class under test
Integration tests
Arrange, Act, Assert
Mocking
Creating databases from code
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Creating mock database connections
How to do itā¦
How it worksā¦
See also
Implementing the repository pattern
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
Dependency Inversion Principle
Repository and caching
Mocking
Where generic constraint
See also
Implementing the unit of work pattern
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
Call per change
Interface Segregation Principle
Refactoring
See also
2. Mapping Entities
Introduction
Mapping non-public members
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Mapping interfaces
Getting ready
How to do itā¦
How it worksā¦
See also
Shadow properties
Getting ready
How to do itā¦
How it worksā¦
See also
Creating one-to-one maps
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Creating one-to-many maps
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Creating many-to-many maps
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Creating custom conventions
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Using sequence key generators
Getting ready
How to do itā¦
How it works...
There's moreā¦
See also
Using GUIDs as keys
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Implementing inheritance ā Table per Class hierarchy
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
3. Validation and Changes
Introduction
Validating simple properties
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Validating the whole entity
Getting ready
How to do itā¦
How it worksā¦
See also
Validating groups of entities
How to do itā¦
How it worksā¦
See also
Intercepting saving changes
Getting ready
How to do itā¦
How it worksā¦
See also
Intercepting property changes
Getting ready
How to do itā¦
How it worksā¦
See also
Setting the state of an entity
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Improving MVC UI with entity framework validation
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
Understanding the HTML helper
See also
Inserting, updating, and deleting entities with stored procedures
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Updating the database from model changes
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Dumping the SQL script for the database creation
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
4. Transactions and Concurrency Control
Introduction
Using explicit transactions
Atomic
Consistent
Isolation
Durability
Getting ready
How to do itā¦
How it worksā¦
See also
Using transactions in custom SQL operations
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Implementing optimistic concurrency in SQL Server
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
Database wins
Client wins/last one wins
See also
Implementing optimistic concurrency in a database-agnostic way
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
5. Querying
Introduction
Executing client-side functions in LINQ queries
Getting ready
How to do itā¦
How it worksā¦
See also
Mixing SQL with LINQ queries
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Getting entities from the local cache
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Creating filtered collections
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Creating reusable queries
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
Extension methods
Naming conflict
See also
Querying shadow properties
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Implementing the query object pattern
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Using dynamic LINQ
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
6. Advanced Scenarios
Introduction
Generating entities from the database
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
Implementing multitenancy
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
Strongly typed bulk operations
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
Handling soft deletes
Getting ready
How to do itā¦
How it worksā¦
See also
Adding logging
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
Capturing the audit data
Getting ready
How to do itā¦
How it worksā¦
See also
Retrieving entity metadata
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Improving MVC applications
Getting ready
How to do it.ā¦
See also ...