title: When using generic in the dbset of the entity framework at Migration
body: <p>I made this change, before it was like this</p>
  
  <pre><code>    public DbSet&lt;Pessoa&gt; Pessoas { get; set; }
  </code></pre>
  
  <p>Now it's this way</p>
  
  <pre><code>class ContextData&lt;T&gt; : DbContext where T : class
  {
      public DbSet&lt;T&gt; Dbset { get; set; }
  
      public ContextData() : base("name=Connection")
          {
  
          }
  
          protected override void OnModelCreating(DbModelBuilder modelBuilder)
          {            
  
          base.OnModelCreating(modelBuilder);
  
          modelBuilder.Configurations.Add(new PessoaMapping());                          
  
          }
  }        
  </code></pre>
  
  <p>So now I do not know what I do in class migrations</p>
  
  <pre><code>internal sealed class Configuration : DbMigrationsConfiguration&lt;local.blogapi.Context.ContextData
  {
      public Configuration()
      {
          AutomaticMigrationsEnabled = true;
      }
  
      protected override void Seed(local.blogapi.Context.ContextData context)
      {
  
      }
  }
  </code></pre>
  
  <p>I know it's going to make a mistake. I do not know how to get the entities or if there is any specific command at the time of doing the migration, or if I pass some interface, such as IEntity</p>