title: How to get DbContext Instance within UnitOfWork via Ninject?
body: <p>I Use UnitOfWork Pattern with Entity Framework to expose DbContext using bellow code. So My question is that, is it poosible to get Context instance with Ninject ?</p>
  
  <p><strong>IUnitOfWork</strong></p>
  
  <pre><code>public interface IUnitOfWork&lt;C&gt; :  IDisposable
  {
          int Commit();
          C GetContext { get; set; }
  }
  </code></pre>
  
  <p><strong>UnitOfWork</strong></p>
  
  <pre><code>public class UnitOfWork&lt;C&gt; : IUnitOfWork&lt;C&gt; where C : DbContext
      {
          private bool _disposed;
          private readonly C _dbContext = null;
  
          public UnitOfWork()
          {
              GetContext = _dbContext ?? Activator.CreateInstance&lt;C&gt;();
          }
  
          public int Commit()
          {
              return GetContext.SaveChanges();
          }
  
  
          public C GetContext
          {
              get;
              set;
          }
  [...]
  </code></pre>
  
  <p>Now within <strong>NinjectWebCommon</strong></p>
  
  <pre><code>private static void RegisterServices(IKernel kernel)
  {
    kernel.Bind&lt;IUnitOfWork&lt;MyDbContext&gt;&gt;().To&lt;UnitOfWork&lt;MyDbContext&gt;&gt;().InRequestScope();
    kernel.Bind&lt;IEmployeeRepository&gt;().To&lt;EmployeeRepository&gt;();
  }
  </code></pre>
  
  <p>Without using <code>_dbContext ?? Activator.CreateInstance&lt;C&gt;();</code> , can it be possible to get <strong>DbContext</strong> instance via <strong>Ninject</strong> ?</p>