Acabado excel, queda la parte de cofiguracion
This commit is contained in:
@@ -37,5 +37,29 @@ public partial class estadisticas
|
||||
|
||||
public double? numeroTrabajadores { get; set; }
|
||||
|
||||
public double? totalCosteAnual { get; set; }
|
||||
|
||||
public double? horasProduccion { get; set; }
|
||||
|
||||
public double? totalSupeficie { get; set; }
|
||||
|
||||
public double? costeHoraExternalizacion { get; set; }
|
||||
|
||||
public double? precioEncargo { get; set; }
|
||||
|
||||
public double? precioTrabajo { get; set; }
|
||||
|
||||
public string? tipoDocumento { get; set; }
|
||||
|
||||
public string? documento { get; set; }
|
||||
|
||||
public string? dato1 { get; set; }
|
||||
|
||||
public string? dato2 { get; set; }
|
||||
|
||||
public string? dato3 { get; set; }
|
||||
|
||||
public double? innovacion { get; set; }
|
||||
|
||||
public virtual simulaciones? idSimulacionNavigation { get; set; }
|
||||
}
|
||||
|
||||
19
bdHerramientaCACOA/db/estadisticasfactores.cs
Normal file
19
bdHerramientaCACOA/db/estadisticasfactores.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace bdHerramientaCACOA.db;
|
||||
|
||||
public partial class estadisticasfactores
|
||||
{
|
||||
public int idestadisticasFactores { get; set; }
|
||||
|
||||
public int? idsimulacion { get; set; }
|
||||
|
||||
public string? nombre { get; set; }
|
||||
|
||||
public double? coeficiente { get; set; }
|
||||
|
||||
public string? tipo { get; set; }
|
||||
|
||||
public virtual simulaciones? idsimulacionNavigation { get; set; }
|
||||
}
|
||||
21
bdHerramientaCACOA/db/estadisticasusos.cs
Normal file
21
bdHerramientaCACOA/db/estadisticasusos.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace bdHerramientaCACOA.db;
|
||||
|
||||
public partial class estadisticasusos
|
||||
{
|
||||
public int idestadisticaUsos { get; set; }
|
||||
|
||||
public int? idSimulacion { get; set; }
|
||||
|
||||
public double? superficie { get; set; }
|
||||
|
||||
public int? idUso { get; set; }
|
||||
|
||||
public int? idTipologia { get; set; }
|
||||
|
||||
public int? idIntervencion { get; set; }
|
||||
|
||||
public virtual simulaciones? idSimulacionNavigation { get; set; }
|
||||
}
|
||||
@@ -29,6 +29,10 @@ public partial class simulaciones
|
||||
|
||||
public virtual ICollection<estadisticas> estadisticas { get; set; } = new List<estadisticas>();
|
||||
|
||||
public virtual ICollection<estadisticasfactores> estadisticasfactores { get; set; } = new List<estadisticasfactores>();
|
||||
|
||||
public virtual ICollection<estadisticasusos> estadisticasusos { get; set; } = new List<estadisticasusos>();
|
||||
|
||||
public virtual usuarios idCodigoNavigation { get; set; } = null!;
|
||||
|
||||
public virtual ficheros idFicheroJSONNavigation { get; set; } = null!;
|
||||
|
||||
@@ -28,6 +28,10 @@ public partial class herramientascacoaContext : DbContext
|
||||
|
||||
public virtual DbSet<estadisticas> estadisticas { get; set; }
|
||||
|
||||
public virtual DbSet<estadisticasfactores> estadisticasfactores { get; set; }
|
||||
|
||||
public virtual DbSet<estadisticasusos> estadisticasusos { get; set; }
|
||||
|
||||
public virtual DbSet<factorescorreccion> factorescorreccion { get; set; }
|
||||
|
||||
public virtual DbSet<ficheros> ficheros { get; set; }
|
||||
@@ -165,13 +169,52 @@ public partial class herramientascacoaContext : DbContext
|
||||
entity.HasIndex(e => e.idSimulacion, "FK_estadisticas_simulaciones_idx");
|
||||
|
||||
entity.Property(e => e.idEstadistica).HasColumnType("int(11)");
|
||||
entity.Property(e => e.dato1).HasMaxLength(45);
|
||||
entity.Property(e => e.dato2).HasMaxLength(45);
|
||||
entity.Property(e => e.dato3).HasMaxLength(45);
|
||||
entity.Property(e => e.documento).HasMaxLength(50);
|
||||
entity.Property(e => e.idSimulacion).HasColumnType("int(11)");
|
||||
entity.Property(e => e.tipoDocumento).HasMaxLength(50);
|
||||
|
||||
entity.HasOne(d => d.idSimulacionNavigation).WithMany(p => p.estadisticas)
|
||||
.HasForeignKey(d => d.idSimulacion)
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.HasConstraintName("FK_estadisticas_simulaciones");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<estadisticasfactores>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.idestadisticasFactores).HasName("PRIMARY");
|
||||
|
||||
entity.HasIndex(e => e.idsimulacion, "FK_estadisticasfactores_simulaciones_idx");
|
||||
|
||||
entity.Property(e => e.idestadisticasFactores).HasColumnType("int(11)");
|
||||
entity.Property(e => e.idsimulacion).HasColumnType("int(11)");
|
||||
entity.Property(e => e.nombre).HasMaxLength(45);
|
||||
entity.Property(e => e.tipo).HasMaxLength(45);
|
||||
|
||||
entity.HasOne(d => d.idsimulacionNavigation).WithMany(p => p.estadisticasfactores)
|
||||
.HasForeignKey(d => d.idsimulacion)
|
||||
.HasConstraintName("FK_estadisticasfactores_simulaciones");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<estadisticasusos>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.idestadisticaUsos).HasName("PRIMARY");
|
||||
|
||||
entity.HasIndex(e => e.idSimulacion, "FK_estadisticasusos_simulaciones_idx");
|
||||
|
||||
entity.Property(e => e.idestadisticaUsos).HasColumnType("int(11)");
|
||||
entity.Property(e => e.idIntervencion).HasColumnType("int(11)");
|
||||
entity.Property(e => e.idSimulacion).HasColumnType("int(11)");
|
||||
entity.Property(e => e.idTipologia).HasColumnType("int(11)");
|
||||
entity.Property(e => e.idUso).HasColumnType("int(11)");
|
||||
|
||||
entity.HasOne(d => d.idSimulacionNavigation).WithMany(p => p.estadisticasusos)
|
||||
.HasForeignKey(d => d.idSimulacion)
|
||||
.HasConstraintName("FK_estadisticasusos_simulaciones");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<factorescorreccion>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.idFactorCorreccion).HasName("PRIMARY");
|
||||
|
||||
@@ -47,6 +47,14 @@
|
||||
"Name": "estadisticas",
|
||||
"ObjectType": 0
|
||||
},
|
||||
{
|
||||
"Name": "estadisticasfactores",
|
||||
"ObjectType": 0
|
||||
},
|
||||
{
|
||||
"Name": "estadisticasusos",
|
||||
"ObjectType": 0
|
||||
},
|
||||
{
|
||||
"Name": "factorescorreccion",
|
||||
"ObjectType": 0
|
||||
|
||||
Reference in New Issue
Block a user