title: EF exception when trying to seed database
body: <p>I followed this tutorial to create my own application: <a href="http://www.asp.net/mvc/overview/getting-started/getting-started-with-ef-using-mvc/creating-an-entity-framework-data-model-for-an-asp-net-mvc-application" rel="nofollow">http://www.asp.net/mvc/overview/getting-started/getting-started-with-ef-using-mvc/creating-an-entity-framework-data-model-for-an-asp-net-mvc-application</a></p>
  
  <p>When I start to debug and try to open tab of Players list, its equivalent to Student tab in these tutorial, I got following exception: </p>
  
  <blockquote>
    <p>Exception Details: Object of type 'AzsPkInz.DAL.AZSContext' cannot be converted to type 'System.Data.Entity.IDatabaseInitializer`1[AzsPkInz.DAL.AZSContext]'.</p>
    
    <p>Source Error:</p>
    
    <ol>
    <li>Line 19:         public ActionResult Index()</li>
    <li>Line 20:         {</li>
    <li>Line 21:             return View(db.Players.ToList());</li>
    <li>Line 22:         }</li>
    </ol>
  </blockquote>
  
  <p>This is <code>AZSContext</code> source:</p>
  
  <pre><code>public class AZSContext : DbContext
  {
      public AZSContext() : base("AZSContext")
      {
      }
  
      public DbSet&lt;Player&gt; Players { get; set; }
      public DbSet&lt;Training&gt; Trainings { get; set; }
      public DbSet&lt;Enrollment&gt; Enrollments { get; set; }
  
      protected override void OnModelCreating(DbModelBuilder modelBuilder)
      {
          modelBuilder.Conventions.Remove&lt;PluralizingTableNameConvention&gt;();
      }
  }
  </code></pre>
  
  <p>And this is a <code>Player</code> model:</p>
  
  <pre><code>public class Player
  {
      public int ID { get; set; }
      public string FirstName { get; set; }
      public string LastName { get; set; }
      public DateTime BirthDate { get; set; }
      public DateTime JoinDate { get; set; }
  
      public virtual ICollection&lt;Enrollment&gt; Enrollemnts { get; set; }
  }
  </code></pre>
  
  <p>Any idea's what I have done wrong?</p>