Open
Description
openedon Oct 6, 2015
Hello EF Development team.
I have a question about dependency injection.
Does EF looking for dependencies when materializing object from database in this manner ?
public class Person
{
public Person(DataContext context)
{
....
}
// or maybe like this
[Dependency]
public DataContext Context {get;set;}
}
After loading and materializing from database DataContext(DataContext is inherited from DbContext) must injected in constructor.
Anything like this is possible now ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment