Feat Widgets 1541
This commit is contained in:
@@ -78,7 +78,8 @@ public class EleccionesDbContext(DbContextOptions<EleccionesDbContext> options)
|
||||
});
|
||||
modelBuilder.Entity<LogoAgrupacionCategoria>(entity =>
|
||||
{
|
||||
entity.HasIndex(l => new { l.AgrupacionPoliticaId, l.CategoriaId }).IsUnique();
|
||||
// La combinación de las tres columnas debe ser única.
|
||||
entity.HasIndex(l => new { l.AgrupacionPoliticaId, l.CategoriaId, l.AmbitoGeograficoId }).IsUnique();
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user