title: Using static method from generic class
body: <p>I have problem as above. My code:</p>
  
  <pre><code>public abstract class BaseFactory&lt;T&gt; where T: class
  {
      protected static dbModelContainer context = new dbModelContainer();
  
      public static int UpdateDataBase_static()
      {
          return context.SaveChanges();
      }
   }
  </code></pre>
  
  <p>and my question is how can I call</p>
  
  <pre><code>BaseFactory.UpdateDataBase_static();
  </code></pre>
  
  <p>instead of:</p>
  
  <pre><code>BaseFactory&lt;SomeClass&gt;.UpdateDataBase_static();
  </code></pre>
  
  <p>Any ideas?</p>