I am trying to figure out a way to handle dependency injection in the root code of an entity.
I came across an article that uses an ObjectStateManager, although I don't think it is available in the code in the first place, so I'm looking for something similar where I could inject an (injection property) object into a newly created / received object, or maybe , another way?
I use Autofac as a di container
Chris source share