title: Access DbContext in another class asp.net core 2
body: <p>In my Controller I have this</p>
  
  <pre><code>private readonly DbContext _context;
  
  public CountryController(DbContext context)
  {
      _context = context;
  }
  </code></pre>
  
  <p>How can I retrieve  DbContext in other classes like static classes without passing as parameter to the method call</p>