Feat Widgets Cards y Optimización de Consultas
This commit is contained in:
@@ -22,6 +22,7 @@ public class EleccionesDbContext(DbContextOptions<EleccionesDbContext> options)
|
||||
public DbSet<LogoAgrupacionCategoria> LogosAgrupacionesCategorias { get; set; }
|
||||
public DbSet<CandidatoOverride> CandidatosOverrides { get; set; }
|
||||
public DbSet<Eleccion> Elecciones { get; set; }
|
||||
public DbSet<BancaPrevia> BancasPrevias { get; set; }
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
@@ -90,5 +91,10 @@ public class EleccionesDbContext(DbContextOptions<EleccionesDbContext> options)
|
||||
entity.HasIndex(c => new { c.AgrupacionPoliticaId, c.CategoriaId, c.AmbitoGeograficoId })
|
||||
.IsUnique();
|
||||
});
|
||||
modelBuilder.Entity<BancaPrevia>(entity =>
|
||||
{
|
||||
entity.Property(e => e.AgrupacionPoliticaId)
|
||||
.UseCollation("Modern_Spanish_CI_AS");
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user