Fix proyeccion bancas
This commit is contained in:
		| @@ -51,5 +51,11 @@ public class EleccionesDbContext(DbContextOptions<EleccionesDbContext> options) | ||||
|         entity.Property(e => e.MesasTotalizadasPorcentaje).HasPrecision(5, 2); | ||||
|         entity.Property(e => e.ParticipacionPorcentaje).HasPrecision(5, 2); | ||||
|     }); | ||||
|         modelBuilder.Entity<ProyeccionBanca>(entity => | ||||
|         { | ||||
|             // La combinación de ámbito, categoría y agrupación debe ser única. | ||||
|             entity.HasIndex(p => new { p.AmbitoGeograficoId, p.CategoriaId, p.AgrupacionPoliticaId }) | ||||
|                   .IsUnique(); | ||||
|         }); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user