title: There is no argument given in context
body: <p>I am trying to implement the <a href="http://www.asp.net/mvc/overview/older-versions/getting-started-with-ef-5-using-mvc-4/implementing-the-repository-and-unit-of-work-patterns-in-an-asp-net-mvc-application" rel="nofollow">repository pattern</a> in <code>asp core</code>. Everything seems to work fine with a few adjustments,except adding it to the controller:</p>
  
  <pre><code>    public class HomeController : Controller
      {
          private IDocumentRepository _context;
  
          public HomeController()
          { 
              _context = new DocumentRepository(new myContext());
          }
  }
  </code></pre>
  
  <p><strong>DocumentRepository.cs</strong> </p>
  
  <pre><code>public class DocumentRepository : IDocumentRepository, IDisposable
  {
  
      private myContext context;
  
      public DocumentRepository(myContext context) : base()
      {
          this.context = context;
      }
  
      public IEnumerable&lt;Document&gt; GetDocuments()
      {
          return context.Document.ToList();
      }
  
      public Document GetDocumentByID(int id)
      {
  
          return context.Document.FirstOrDefault(x =&gt; x.Id == id);
      }
  </code></pre>
  
  <p><strong>IDocumentRepository.cs</strong></p>
  
  <pre><code>public interface IDocumentRepository : IDisposable
  {
      IEnumerable&lt;Document&gt; GetDocuments();
      Document GetDocumentByID(int documentId);
      void InsertDocument(Document student);
      void DeleteDocument(int documentID);
      void UpdateDocument(Document document);
      void Save();
  }
  </code></pre>
  
  <p><strong>The error</strong> </p>
  
  <blockquote>
    <p>There is no argument given that corresponds to the required formal
    parameter 'options' of
    'myContext.myContext(DbContextOptions)
    dotnetcore..NETCoreApp,Version=v1.0</p>
  </blockquote>