Would you recommend to register and resolve a DbContext using dependency injection container and what lifetime would you use for the registration?
Experience Level: Medior
Tags: Entity Framework
Answer
Oops, we don't have the answer yet...
Ask our expert directlyRelated Entity Framework job interview questions
What is include filtering in Entity Framework and why would you use it?
Entity Framework SeniorYou use Entity Framework and were asked to insert one million records to a MS SQL database. How will you approach this task?
Entity Framework SeniorWhat is change tracking in Entity Framework and why should you know about it?
Entity Framework MediorHow do you make sure that your Entity Framework data access layer is performant?
Entity Framework JuniorUsing Entity Framework, how do you define that multiple nested entities should be eager loaded?
Entity Framework Junior