Dependency inversion
Definition
The dependency inversion principle states that high-level modules should not depend on low-level modules; both depend on abstractions, and the abstractions are owned by the high-level side.
In practice
At runtime a use case still calls the database, so control flows outward. In source code, though, the use case references only an interface it declared, and the database adapter references that interface. This is what lets clean and hexagonal architecture swap infrastructure and test business rules in isolation.
Dependency inversion is not the same as dependency injection: injection is a mechanism for supplying implementations, inversion is about who owns the interface. Interfaces defined next to their implementation, in the infrastructure project, give the ceremony without the inversion.
Example
IOrderRepository lives in the Orders.Core project; Orders.Infrastructure references Core and implements it with EF Core, while Core has no reference to Infrastructure.