title: (21,6) : error 0019: Each property name in a type must be unique.
body: <p>Hi I know this has been asked quiet a few times, and though I read other users answers I still can't seem to figure it out, I'm getting this error after trying to initialize my database with EF code first:</p>
  
  <p>(21,6) : error 0019: Each property name in a type must be unique. Property name 'AlumnoID' was already defined.</p>
  
  <p>here is my proyect structure: <a href="http://s17.postimg.org/u2jsvjke7/solutionexplorer.png" rel="nofollow">http://s17.postimg.org/u2jsvjke7/solutionexplorer.png</a></p>
  
  <p>here is the configuration of the poco class that I'm getting the error:</p>
  
  <pre><code>   public class AlumnosConfiguracion : EntityTypeConfiguration&lt;tblAlumnos&gt;
      {
      public AlumnosConfiguracion()
      {
          this.HasKey(p =&gt; p.AlumnoID);
         // this.Property(p =&gt; p.AlumnoID).HasColumnOrder(0);
  
  
          this.Property(p =&gt; p.Matricula).IsRequired();
          this.Property(p =&gt; p.ApellidoPaterno).HasMaxLength(120).IsRequired();
          this.Property(p =&gt; p.ApellidoMaterno).HasMaxLength(120).IsRequired();
          this.Property(p =&gt; p.Nombres).HasMaxLength(25).IsRequired();
          this.Property(p =&gt; p.Edad).IsRequired();
          this.Property(p =&gt; p.Sexo).HasMaxLength(10).IsRequired();
          this.Property(p =&gt; p.FechaNacimiento).HasMaxLength(20).IsRequired();
          this.Property(p =&gt; p.Nacionalidad).HasMaxLength(25).IsRequired();
          this.Property(p =&gt; p.Telefono).HasMaxLength(25).IsOptional();
          this.Property(p =&gt; p.DomicilioID).IsOptional();
          this.Property(p =&gt; p.Activo).IsRequired();
  
          //Relacion direccion a alumnos, un alumno una direccion, una direccion muchos alumnos.
          this.HasRequired(a =&gt; a.objDomicilio)
              .WithMany(d =&gt; d.alumnos)
              .HasForeignKey(a =&gt; a.DomicilioID)
              .WillCascadeOnDelete(false);
          //Relacion Plantel a alumnos, donde un planetel puede tener muchos alumnos, pero un alumno un plantel.
          this.HasRequired(a =&gt; a.objPlantel)
              .WithMany(p =&gt; p.alumnos)
              .HasForeignKey(a =&gt; a.PlantelID)
              .WillCascadeOnDelete(false);
      }
  }
  </code></pre>
  
  <p>here is db context class:</p>
  
  <p>namespace GestionAlumnos.Contexto
  {
      public class Alumnosdb : DbContext
      {
          //Constructor para que el nombre de la base de datos sea igual en sqlserver.
          public Alumnosdb() : base(nameOrConnectionString: Alumnosdb.ConnectionStringName){}</p>
  
  <pre><code>    //Static Constructor
      static Alumnosdb()
      {
          //here I initialize my database
          Database.SetInitializer(new AlumnosDbInicializador());
      }
  
  
      public DbSet&lt;tblAlumnos&gt; Alumnos { get; set; }
      public DbSet&lt;tblUsuarios&gt; Usuarios { get; set; }
      public DbSet&lt;AlumnosSemestres&gt; AlumnosSemestres { get; set; }
      public DbSet&lt;AnioPeriodo&gt; AnioPeriodo { get; set; }
      public DbSet&lt;tblColegios&gt; Colegios { get; set; }
      public DbSet&lt;tblDomicilios&gt; Domicilios { get; set; }
      public DbSet&lt;tblPeriodos&gt; Periodos { get; set; }
      public DbSet&lt;tblPlanteles&gt; Planteles { get; set; }
      public DbSet&lt;tblSemestres&gt; Semestres { get; set; }
      public DbSet&lt;tblTurnos&gt; Turnos { get; set; }
      public DbSet&lt;tblRoles&gt; Roles { get; set; }
  
  
      public static string ConnectionStringName
      {
          get
          {                                       
              if (ConfigurationManager.AppSettings["ConnectionStringName"] != null)
              {
                  return ConfigurationManager.AppSettings["ConnectionStringName"].ToString();
              }
  
              return "DefaultConnection";
          }
      }
  
      protected override void OnModelCreating(DbModelBuilder modelBuilder)
      {
  
          modelBuilder.Configurations.Add(new AlumnosConfiguracion());
          modelBuilder.Configurations.Add(new AlumnosSemestresConfiguracion());
          modelBuilder.Configurations.Add(new AnioPeriodoConfiguracion());
          modelBuilder.Configurations.Add(new ColegiosConfiguracion());
          modelBuilder.Configurations.Add(new DomiciliosConfiguracion());
          modelBuilder.Configurations.Add(new PeriodosConfiguracion());
          modelBuilder.Configurations.Add(new PlantelesConfiguracion());
          modelBuilder.Configurations.Add(new RolesConfiguracion());
          modelBuilder.Configurations.Add(new SemestresConfiguracion());
          modelBuilder.Configurations.Add(new TurnosConfiguracion());
          modelBuilder.Configurations.Add(new UsuariosConfiguracion());
  
          //base.OnModelCreating(modelBuilder);
      }
  
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>and this is the error I get after trying to initialize my dababase:</p>
  
  <p><a href="http://s12.postimg.org/q019oyo4d/error.png" rel="nofollow">http://s12.postimg.org/q019oyo4d/error.png</a></p>
  
  <p>I'm desperate I've been struggling with this for days now, If someone would like to take a look at my code let me know and I will send it to you, but please help with these, already tried with Julie Lerman said about deleting the left over assemblies but still no results, hopefully someone here would be able to help me.</p>
  
  <p>Thanks for  your future suggestions.</p>