How to use DI inside a static Method in Asp.net Core rc1
<p>I see defaut template use  <code>ServiceProvder.GetService&lt;ApplicationDbCotnext&gt;()</code> to initialize a DbContext,
But when you inside a Static Method, I have no idea  how to get a <code>DbContext</code>, because there is no <code>ServiceProvider</code>.
Is there a way to get the <code>ServiceProvider</code> ?</p>