Injecting Service Dependencies to Entities with Entity Framework Core 7.0
Briefly

Introduction
Dependency injection is a widely-used pattern of obtaining references to other services from our classes.It is a built-in feature when you develop ASP.NET Core applications.In this article, I will explain why we may need to have references to other services in an entity class and how we can implement Entity Framework Core's new IMaterializationInterceptor interface to provide these services to the entities using the standard dependency injection system.
Read at CodeProject
[
add
]
[
|
|
]