title: Upgrading from 0.4.x to 0.5.x ASP Boilerplate and breaking change #249
body: <p>I have a project based on ASP.NET Boilerplate <a href="http://aspnetboilerplate.com" rel="nofollow">http://aspnetboilerplate.com</a> and for reasons outside of my control I have had to upgrade the project from 0.4.x to 0.5.x. Clearly stated in the change logs (<a href="http://aspnetboilerplate.com/Pages/Documents/Change-Logs" rel="nofollow">http://aspnetboilerplate.com/Pages/Documents/Change-Logs</a>) is the following breaking change:</p>
  
  <p><strong>Changed base repository constructor for EntityFramework</strong></p>
  
  <p><a href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/249" rel="nofollow">https://github.com/aspnetboilerplate/aspnetboilerplate/issues/249</a></p>
  
  <p>However for the life of me I cannot figure out how I change my existing base class to support this. My code is as follows:</p>
  
  <pre><code>    public class MlRepositoryCommon&lt;TEntity, TPrimaryKey&gt; : EfRepositoryBase&lt;MlDbContext, TEntity, TPrimaryKey&gt; where TEntity : class, IEntity&lt;TPrimaryKey&gt;
      {
          //Add common methods for repositories
      }
  
      public class MlRepositoryBase&lt;TEntity&gt; : MlRepositoryCommon&lt;TEntity, long&gt; where TEntity : class, IEntity&lt;long&gt;
      {
      }
  
     public class MlDbContext : AbpDbContext
      {
          public MlDbContext()
              : base("DefaultConnection")
          {
          }
     }
  </code></pre>
  
  <p>and the compilation error is:</p>
  
  <pre><code>'Abp.EntityFramework.Repositories.EfRepositoryBase&lt;MakersLane.Infrastructure.EntityFramework.EntityFramework.MlDbContext,TEntity,TPrimaryKey&gt;' does not contain a constructor that takes 0 arguments
  </code></pre>
  
  <p>I would appreciate any help with this as I now have a looming deadline and no compiling solution :-(</p>