How does EF7 bootstrap dependency injection (IServiceCollection) if you're not in ASP.NET 5?
- 阅读更多 关于 How does EF7 bootstrap dependency injection (IServiceCollection) if you're not in ASP.NET 5?
I'm still trying to get my head around what's what with ASP.NET 5 / EF 7. I'm using DNX projects (.xproj). Startup is used by OWIN/ASP.NET for configuring, loading services, etc. But it's also used for EF 7 migrations (to set your DbContextOptions for example). My main goal is to know how EF7 (and ASP.NET 5) bootstrap with Startup and who's creating the startup class, initializing the DI container, etc. An example of what I need to do, for context, is that in my xUnit unit tests (which are in their own assembly and reference my data assembly which doesn't have a Startup class), I need to