title: Passing database context to static methods
body: <p>I have a class with some static lists. For demonstrative purposes I'll only show two:</p>
  
  <pre><code>public class Foo
  {
      public static readonly List&lt;long&gt; FirstList(EfEntities dbContext)
      {
          return dbContext.SomeTable.Where(x =&gt; x == 1).ToList();
      }
  
      public static readonly List&lt;long&gt; SecondList(EfEntities dbContext)
      {
          return dbContext.SomeTable.Where(x =&gt; x == 2).ToList();
      }
  }
  </code></pre>
  
  <p>I'm not a big fan of passing my database context to each and every static method. Do you have any suggestions on different approaches?</p>