2026-01-27 02
This commit is contained in:
@@ -38,6 +38,7 @@ namespace bdGrupoSanchoToro.Importaciones
|
||||
{
|
||||
pr = new productos()
|
||||
{
|
||||
idEmpresa = 1,
|
||||
Codigo = "GR-" + gr.CGCOD,
|
||||
Descripcion = "GRÚA " + mar.Marca + " " + gr.CGMDL
|
||||
};
|
||||
@@ -47,7 +48,9 @@ namespace bdGrupoSanchoToro.Importaciones
|
||||
n.idMarcaNavigation = mar;
|
||||
n.idProductoNavigation = pr;
|
||||
n.FechaAlta = DateTime.Now;
|
||||
n.Modelo = gr.CGMDL;
|
||||
bd.SaveChanges();
|
||||
lg.Add(n);
|
||||
}
|
||||
VersionesGruasEnum ver;
|
||||
if (gr.CGVER != "")
|
||||
@@ -91,7 +94,7 @@ namespace bdGrupoSanchoToro.Importaciones
|
||||
break;
|
||||
}
|
||||
var vg = lv.FirstOrDefault(x => x.idModeloNavigation.Modelo == gr.CGMDL && x.idModeloNavigation.idMarcaNavigation.Marca == gr.CGMAR && x.Version == (int)ver);
|
||||
if (vg != null)
|
||||
if (vg == null)
|
||||
{
|
||||
vg = new versionesgruas()
|
||||
{
|
||||
|
||||
@@ -5,11 +5,11 @@ using PropertyChanged;
|
||||
namespace bdGrupoSanchoToro.db;
|
||||
|
||||
[AddINotifyPropertyChangedInterface]
|
||||
public partial class marcasgruas
|
||||
public partial class marcas
|
||||
{
|
||||
public int idMarca { get; set; }
|
||||
|
||||
public string? Marca { get; set; }
|
||||
|
||||
public virtual ICollection<modelosgruas> modelosgruas { get; set; } = new List<modelosgruas>();
|
||||
public virtual ICollection<productos> productos { get; set; } = new List<productos>();
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using PropertyChanged;
|
||||
|
||||
namespace bdGrupoSanchoToro.db;
|
||||
|
||||
[AddINotifyPropertyChangedInterface]
|
||||
public partial class modelosgruas
|
||||
{
|
||||
public int idProducto { get; set; }
|
||||
|
||||
public string Modelo { get; set; } = null!;
|
||||
|
||||
public int idMarca { get; set; }
|
||||
|
||||
public DateTime? FechaAlta { get; set; }
|
||||
|
||||
public DateTime? FechaBaja { get; set; }
|
||||
|
||||
public virtual marcasgruas idMarcaNavigation { get; set; } = null!;
|
||||
|
||||
public virtual productos idProductoNavigation { get; set; } = null!;
|
||||
|
||||
public virtual ICollection<tablaalturas> tablaalturas { get; set; } = new List<tablaalturas>();
|
||||
|
||||
public virtual ICollection<tablaplumas> tablaplumas { get; set; } = new List<tablaplumas>();
|
||||
|
||||
public virtual ICollection<versionesgruas> versionesgruas { get; set; } = new List<versionesgruas>();
|
||||
}
|
||||
@@ -23,7 +23,7 @@ public partial class productos
|
||||
|
||||
public string? ReferenciaFabrica { get; set; }
|
||||
|
||||
public int? idTipoProducto { get; set; }
|
||||
public int? TipoProducto { get; set; }
|
||||
|
||||
public string? CodigoBarras { get; set; }
|
||||
|
||||
@@ -37,7 +37,7 @@ public partial class productos
|
||||
|
||||
public int? idCodigoImpresion { get; set; }
|
||||
|
||||
public string? Marca { get; set; }
|
||||
public int? idMarca { get; set; }
|
||||
|
||||
public string? Modelo { get; set; }
|
||||
|
||||
@@ -79,6 +79,8 @@ public partial class productos
|
||||
|
||||
public int idEmpresa { get; set; }
|
||||
|
||||
public double? UltimoPrecioCompra { get; set; }
|
||||
|
||||
public virtual ICollection<articulos> articulos { get; set; } = new List<articulos>();
|
||||
|
||||
public virtual ICollection<detallepresupuesto> detallepresupuesto { get; set; } = new List<detallepresupuesto>();
|
||||
@@ -93,11 +95,17 @@ public partial class productos
|
||||
|
||||
public virtual familias? idFamiliaNavigation { get; set; }
|
||||
|
||||
public virtual marcas? idMarcaNavigation { get; set; }
|
||||
|
||||
public virtual usuarios? idUsuarioCreadorNavigation { get; set; }
|
||||
|
||||
public virtual usuarios? idUsuarioModificadorNavigation { get; set; }
|
||||
|
||||
public virtual modelosgruas? modelosgruas { get; set; }
|
||||
|
||||
public virtual ICollection<stocks> stocks { get; set; } = new List<stocks>();
|
||||
|
||||
public virtual ICollection<tablaalturas> tablaalturas { get; set; } = new List<tablaalturas>();
|
||||
|
||||
public virtual ICollection<tablaplumas> tablaplumas { get; set; } = new List<tablaplumas>();
|
||||
|
||||
public virtual ICollection<versionesgruas> versionesgruas { get; set; } = new List<versionesgruas>();
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ public partial class tablaalturas
|
||||
{
|
||||
public int idAltura { get; set; }
|
||||
|
||||
public int idModelo { get; set; }
|
||||
public int idProducto { get; set; }
|
||||
|
||||
public int? idVersion { get; set; }
|
||||
|
||||
@@ -17,7 +17,7 @@ public partial class tablaalturas
|
||||
|
||||
public string? Observaciones { get; set; }
|
||||
|
||||
public virtual modelosgruas idModeloNavigation { get; set; } = null!;
|
||||
public virtual productos idProductoNavigation { get; set; } = null!;
|
||||
|
||||
public virtual versionesgruas? idVersionNavigation { get; set; }
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ public partial class tablaplumas
|
||||
{
|
||||
public int idPluma { get; set; }
|
||||
|
||||
public int idModelo { get; set; }
|
||||
public int idProducto { get; set; }
|
||||
|
||||
public double Pluma { get; set; }
|
||||
|
||||
@@ -19,5 +19,5 @@ public partial class tablaplumas
|
||||
|
||||
public string? Observaciones { get; set; }
|
||||
|
||||
public virtual modelosgruas idModeloNavigation { get; set; } = null!;
|
||||
public virtual productos idProductoNavigation { get; set; } = null!;
|
||||
}
|
||||
|
||||
63
bdGrupoSanchoToro/db/v_apuntesagrupados.cs
Normal file
63
bdGrupoSanchoToro/db/v_apuntesagrupados.cs
Normal file
@@ -0,0 +1,63 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using PropertyChanged;
|
||||
|
||||
namespace bdGrupoSanchoToro.db;
|
||||
|
||||
[AddINotifyPropertyChangedInterface]
|
||||
public partial class v_apuntesagrupados
|
||||
{
|
||||
public int idCuenta { get; set; }
|
||||
|
||||
public double? HaberEnero { get; set; }
|
||||
|
||||
public double? HaberFebrero { get; set; }
|
||||
|
||||
public double? HaberMarzo { get; set; }
|
||||
|
||||
public double? HaberAbril { get; set; }
|
||||
|
||||
public double? HaberMayo { get; set; }
|
||||
|
||||
public double? HaberJunio { get; set; }
|
||||
|
||||
public double? HaberJulio { get; set; }
|
||||
|
||||
public double? HaberAgosto { get; set; }
|
||||
|
||||
public double? HaberSeptiembre { get; set; }
|
||||
|
||||
public double? HaberOctubre { get; set; }
|
||||
|
||||
public double? HaberNoviembre { get; set; }
|
||||
|
||||
public double? HaberDiciembre { get; set; }
|
||||
|
||||
public double? DebeEnero { get; set; }
|
||||
|
||||
public double? DebeFebrero { get; set; }
|
||||
|
||||
public double? DebeMarzo { get; set; }
|
||||
|
||||
public double? DebeAbril { get; set; }
|
||||
|
||||
public double? DebeMayo { get; set; }
|
||||
|
||||
public double? DebeJunio { get; set; }
|
||||
|
||||
public double? DebeJulio { get; set; }
|
||||
|
||||
public double? DebeAgosto { get; set; }
|
||||
|
||||
public double? DebeSeptiembre { get; set; }
|
||||
|
||||
public double? DebeOctubre { get; set; }
|
||||
|
||||
public double? DebeNoviembre { get; set; }
|
||||
|
||||
public double? DebeDiciembre { get; set; }
|
||||
|
||||
public double? TotalDebe { get; set; }
|
||||
|
||||
public double? TotalHaber { get; set; }
|
||||
}
|
||||
79
bdGrupoSanchoToro/db/v_apuntesextendidos.cs
Normal file
79
bdGrupoSanchoToro/db/v_apuntesextendidos.cs
Normal file
@@ -0,0 +1,79 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using PropertyChanged;
|
||||
|
||||
namespace bdGrupoSanchoToro.db;
|
||||
|
||||
[AddINotifyPropertyChangedInterface]
|
||||
public partial class v_apuntesextendidos
|
||||
{
|
||||
public int idApunte { get; set; }
|
||||
|
||||
public int idCuenta { get; set; }
|
||||
|
||||
public string? Concepto { get; set; }
|
||||
|
||||
public string? NumeroDocumento { get; set; }
|
||||
|
||||
public double Debe { get; set; }
|
||||
|
||||
public double Haber { get; set; }
|
||||
|
||||
public int idAsiento { get; set; }
|
||||
|
||||
public int? idConcepto { get; set; }
|
||||
|
||||
public DateTime? FechaPunteo { get; set; }
|
||||
|
||||
public int? TipoDocumento { get; set; }
|
||||
|
||||
public int? idConciliacion { get; set; }
|
||||
|
||||
public double? HaberEnero { get; set; }
|
||||
|
||||
public double? HaberFebrero { get; set; }
|
||||
|
||||
public double? HaberMarzo { get; set; }
|
||||
|
||||
public double? HaberAbril { get; set; }
|
||||
|
||||
public double? HaberMayo { get; set; }
|
||||
|
||||
public double? HaberJunio { get; set; }
|
||||
|
||||
public double? HaberJulio { get; set; }
|
||||
|
||||
public double? HaberAgosto { get; set; }
|
||||
|
||||
public double? HaberSeptiembre { get; set; }
|
||||
|
||||
public double? HaberOctubre { get; set; }
|
||||
|
||||
public double? HaberNoviembre { get; set; }
|
||||
|
||||
public double? HaberDiciembre { get; set; }
|
||||
|
||||
public double? DebeEnero { get; set; }
|
||||
|
||||
public double? DebeFebrero { get; set; }
|
||||
|
||||
public double? DebeMarzo { get; set; }
|
||||
|
||||
public double? DebeAbril { get; set; }
|
||||
|
||||
public double? DebeMayo { get; set; }
|
||||
|
||||
public double? DebeJunio { get; set; }
|
||||
|
||||
public double? DebeJulio { get; set; }
|
||||
|
||||
public double? DebeAgosto { get; set; }
|
||||
|
||||
public double? DebeSeptiembre { get; set; }
|
||||
|
||||
public double? DebeOctubre { get; set; }
|
||||
|
||||
public double? DebeNoviembre { get; set; }
|
||||
|
||||
public double? DebeDiciembre { get; set; }
|
||||
}
|
||||
@@ -9,13 +9,13 @@ public partial class versionesgruas
|
||||
{
|
||||
public int idVersion { get; set; }
|
||||
|
||||
public int idModelo { get; set; }
|
||||
public int idProducto { get; set; }
|
||||
|
||||
public int Version { get; set; }
|
||||
|
||||
public string? Observaciones { get; set; }
|
||||
|
||||
public virtual modelosgruas idModeloNavigation { get; set; } = null!;
|
||||
public virtual productos idProductoNavigation { get; set; } = null!;
|
||||
|
||||
public virtual ICollection<tablaalturas> tablaalturas { get; set; } = new List<tablaalturas>();
|
||||
}
|
||||
|
||||
103
bdGrupoSanchoToro/db/vf_cuentas.cs
Normal file
103
bdGrupoSanchoToro/db/vf_cuentas.cs
Normal file
@@ -0,0 +1,103 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using PropertyChanged;
|
||||
|
||||
namespace bdGrupoSanchoToro.db;
|
||||
|
||||
[AddINotifyPropertyChangedInterface]
|
||||
public partial class vf_cuentas
|
||||
{
|
||||
public int idCuenta { get; set; }
|
||||
|
||||
public string? Mote { get; set; }
|
||||
|
||||
public string Denominacion { get; set; } = null!;
|
||||
|
||||
public double PresupuestoEnero { get; set; }
|
||||
|
||||
public double PresupuestoFebrero { get; set; }
|
||||
|
||||
public double PresupuestoMarzo { get; set; }
|
||||
|
||||
public double PresupuestoAbril { get; set; }
|
||||
|
||||
public double PresupuestoMayo { get; set; }
|
||||
|
||||
public double PresupuestoJunio { get; set; }
|
||||
|
||||
public double PresupuestoJulio { get; set; }
|
||||
|
||||
public double PresupuestoAgosto { get; set; }
|
||||
|
||||
public double PresupuestoSeptiembre { get; set; }
|
||||
|
||||
public double PresupuestoOctubre { get; set; }
|
||||
|
||||
public double PresupuestoNoviembre { get; set; }
|
||||
|
||||
public double PresupuestoDiciembre { get; set; }
|
||||
|
||||
public string? Observaciones { get; set; }
|
||||
|
||||
public string NumeroCuenta { get; set; } = null!;
|
||||
|
||||
public int idEjercicio { get; set; }
|
||||
|
||||
public int? idEmpresaAmortizacion { get; set; }
|
||||
|
||||
public bool EsCuentaFinal { get; set; }
|
||||
|
||||
public double? HaberEnero { get; set; }
|
||||
|
||||
public double? HaberFebrero { get; set; }
|
||||
|
||||
public double? HaberMarzo { get; set; }
|
||||
|
||||
public double? HaberAbril { get; set; }
|
||||
|
||||
public double? HaberMayo { get; set; }
|
||||
|
||||
public double? HaberJunio { get; set; }
|
||||
|
||||
public double? HaberJulio { get; set; }
|
||||
|
||||
public double? HaberAgosto { get; set; }
|
||||
|
||||
public double? HaberSeptiembre { get; set; }
|
||||
|
||||
public double? HaberOctubre { get; set; }
|
||||
|
||||
public double? HaberNoviembre { get; set; }
|
||||
|
||||
public double? HaberDiciembre { get; set; }
|
||||
|
||||
public double? DebeEnero { get; set; }
|
||||
|
||||
public double? DebeFebrero { get; set; }
|
||||
|
||||
public double? DebeMarzo { get; set; }
|
||||
|
||||
public double? DebeAbril { get; set; }
|
||||
|
||||
public double? DebeMayo { get; set; }
|
||||
|
||||
public double? DebeJunio { get; set; }
|
||||
|
||||
public double? DebeJulio { get; set; }
|
||||
|
||||
public double? DebeAgosto { get; set; }
|
||||
|
||||
public double? DebeSeptiembre { get; set; }
|
||||
|
||||
public double? DebeOctubre { get; set; }
|
||||
|
||||
public double? DebeNoviembre { get; set; }
|
||||
|
||||
public double? DebeDiciembre { get; set; }
|
||||
|
||||
public double TotalDebe { get; set; }
|
||||
|
||||
public double TotalHaber { get; set; }
|
||||
|
||||
public string? Ejercicio { get; set; }
|
||||
}
|
||||
@@ -104,12 +104,10 @@ public partial class GrupoSanchoToroContext : DbContext
|
||||
|
||||
public virtual DbSet<logs> logs { get; set; }
|
||||
|
||||
public virtual DbSet<marcasgruas> marcasgruas { get; set; }
|
||||
public virtual DbSet<marcas> marcas { get; set; }
|
||||
|
||||
public virtual DbSet<menus> menus { get; set; }
|
||||
|
||||
public virtual DbSet<modelosgruas> modelosgruas { get; set; }
|
||||
|
||||
public virtual DbSet<movimientosbancarios> movimientosbancarios { get; set; }
|
||||
|
||||
public virtual DbSet<movimientoscaja> movimientoscaja { get; set; }
|
||||
@@ -144,8 +142,14 @@ public partial class GrupoSanchoToroContext : DbContext
|
||||
|
||||
public virtual DbSet<v_albaranesextendidos> v_albaranesextendidos { get; set; }
|
||||
|
||||
public virtual DbSet<v_apuntesagrupados> v_apuntesagrupados { get; set; }
|
||||
|
||||
public virtual DbSet<v_apuntesextendidos> v_apuntesextendidos { get; set; }
|
||||
|
||||
public virtual DbSet<versionesgruas> versionesgruas { get; set; }
|
||||
|
||||
public virtual DbSet<vf_cuentas> vf_cuentas { get; set; }
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder
|
||||
@@ -1716,7 +1720,7 @@ public partial class GrupoSanchoToroContext : DbContext
|
||||
.HasCharSet("utf8mb3");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<marcasgruas>(entity =>
|
||||
modelBuilder.Entity<marcas>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.idMarca).HasName("PRIMARY");
|
||||
|
||||
@@ -1750,31 +1754,6 @@ public partial class GrupoSanchoToroContext : DbContext
|
||||
.HasConstraintName("menus_permisos");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<modelosgruas>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.idProducto).HasName("PRIMARY");
|
||||
|
||||
entity.HasIndex(e => e.idMarca, "FK_modelosgruas_marcas_idx");
|
||||
|
||||
entity.HasIndex(e => new { e.Modelo, e.idMarca }, "MarcaModelo").IsUnique();
|
||||
|
||||
entity.HasIndex(e => e.idProducto, "idProducto_UNIQUE").IsUnique();
|
||||
|
||||
entity.Property(e => e.idProducto).ValueGeneratedNever();
|
||||
entity.Property(e => e.FechaAlta).HasColumnType("datetime");
|
||||
entity.Property(e => e.FechaBaja).HasColumnType("datetime");
|
||||
entity.Property(e => e.Modelo).HasMaxLength(50);
|
||||
|
||||
entity.HasOne(d => d.idMarcaNavigation).WithMany(p => p.modelosgruas)
|
||||
.HasForeignKey(d => d.idMarca)
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK_modelosgruas_marcas");
|
||||
|
||||
entity.HasOne(d => d.idProductoNavigation).WithOne(p => p.modelosgruas)
|
||||
.HasForeignKey<modelosgruas>(d => d.idProducto)
|
||||
.HasConstraintName("FK_modelosgruas_productos");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<movimientosbancarios>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.idMovimientoBancario).HasName("PRIMARY");
|
||||
@@ -2087,6 +2066,8 @@ public partial class GrupoSanchoToroContext : DbContext
|
||||
|
||||
entity.HasIndex(e => e.idFamilia, "productos_familias_idx");
|
||||
|
||||
entity.HasIndex(e => e.idMarca, "productos_marcas_idx");
|
||||
|
||||
entity.Property(e => e.Codigo).HasMaxLength(40);
|
||||
entity.Property(e => e.CodigoBarras).HasMaxLength(16);
|
||||
entity.Property(e => e.ControlarEnAlbaran).HasMaxLength(2);
|
||||
@@ -2097,8 +2078,7 @@ public partial class GrupoSanchoToroContext : DbContext
|
||||
.HasCharSet("latin1");
|
||||
entity.Property(e => e.DescripcionAbreviada).HasMaxLength(45);
|
||||
entity.Property(e => e.FechaBaja).HasColumnType("datetime");
|
||||
entity.Property(e => e.Marca).HasMaxLength(45);
|
||||
entity.Property(e => e.Modelo).HasMaxLength(45);
|
||||
entity.Property(e => e.Modelo).HasMaxLength(50);
|
||||
entity.Property(e => e.ModeloGruaPatas).HasMaxLength(45);
|
||||
entity.Property(e => e.ModelosPatas).HasMaxLength(45);
|
||||
entity.Property(e => e.NumeroSerie).HasMaxLength(2);
|
||||
@@ -2119,6 +2099,11 @@ public partial class GrupoSanchoToroContext : DbContext
|
||||
.HasForeignKey(d => d.idFamilia)
|
||||
.HasConstraintName("productos_familias");
|
||||
|
||||
entity.HasOne(d => d.idMarcaNavigation).WithMany(p => p.productos)
|
||||
.HasForeignKey(d => d.idMarca)
|
||||
.OnDelete(DeleteBehavior.SetNull)
|
||||
.HasConstraintName("productos_marcas");
|
||||
|
||||
entity.HasOne(d => d.idUsuarioCreadorNavigation).WithMany(p => p.productosidUsuarioCreadorNavigation)
|
||||
.HasForeignKey(d => d.idUsuarioCreador)
|
||||
.OnDelete(DeleteBehavior.SetNull)
|
||||
@@ -2191,33 +2176,33 @@ public partial class GrupoSanchoToroContext : DbContext
|
||||
{
|
||||
entity.HasKey(e => e.idAltura).HasName("PRIMARY");
|
||||
|
||||
entity.HasIndex(e => e.idModelo, "FK_tablaalturas_modelos_idx");
|
||||
entity.HasIndex(e => e.idProducto, "FK_tablaalturas_productos_idx");
|
||||
|
||||
entity.HasIndex(e => e.idVersion, "FK_tablaalturas_versiones_idx");
|
||||
entity.HasIndex(e => e.idVersion, "FK_tablaalturas_versionesgruas_idx");
|
||||
|
||||
entity.Property(e => e.Observaciones).HasMaxLength(50);
|
||||
|
||||
entity.HasOne(d => d.idModeloNavigation).WithMany(p => p.tablaalturas)
|
||||
.HasForeignKey(d => d.idModelo)
|
||||
.HasConstraintName("FK_tablaalturas_modelos");
|
||||
entity.HasOne(d => d.idProductoNavigation).WithMany(p => p.tablaalturas)
|
||||
.HasForeignKey(d => d.idProducto)
|
||||
.HasConstraintName("FK_tablaalturas_productos");
|
||||
|
||||
entity.HasOne(d => d.idVersionNavigation).WithMany(p => p.tablaalturas)
|
||||
.HasForeignKey(d => d.idVersion)
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.HasConstraintName("FK_tablaalturas_versiones");
|
||||
.HasConstraintName("FK_tablaalturas_versionesgruas");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<tablaplumas>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.idPluma).HasName("PRIMARY");
|
||||
|
||||
entity.HasIndex(e => e.idModelo, "FK_tablaplumas_modelosgruas_idx");
|
||||
entity.HasIndex(e => e.idProducto, "FK_tablaplumas_productos_idx");
|
||||
|
||||
entity.Property(e => e.Observaciones).HasMaxLength(50);
|
||||
|
||||
entity.HasOne(d => d.idModeloNavigation).WithMany(p => p.tablaplumas)
|
||||
.HasForeignKey(d => d.idModelo)
|
||||
.HasConstraintName("FK_tablaplumas_modelosgruas");
|
||||
entity.HasOne(d => d.idProductoNavigation).WithMany(p => p.tablaplumas)
|
||||
.HasForeignKey(d => d.idProducto)
|
||||
.HasConstraintName("FK_tablaplumas_productos");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<tablas>(entity =>
|
||||
@@ -2440,20 +2425,50 @@ public partial class GrupoSanchoToroContext : DbContext
|
||||
entity.Property(e => e.idEvento).HasDefaultValueSql("'0'");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<v_apuntesagrupados>(entity =>
|
||||
{
|
||||
entity
|
||||
.HasNoKey()
|
||||
.ToView("v_apuntesagrupados");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<v_apuntesextendidos>(entity =>
|
||||
{
|
||||
entity
|
||||
.HasNoKey()
|
||||
.ToView("v_apuntesextendidos");
|
||||
|
||||
entity.Property(e => e.Concepto).HasMaxLength(200);
|
||||
entity.Property(e => e.FechaPunteo).HasColumnType("datetime");
|
||||
entity.Property(e => e.NumeroDocumento).HasMaxLength(30);
|
||||
});
|
||||
|
||||
modelBuilder.Entity<versionesgruas>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.idVersion).HasName("PRIMARY");
|
||||
|
||||
entity.HasIndex(e => new { e.idModelo, e.Version }, "modelo_version").IsUnique();
|
||||
entity.HasIndex(e => e.idProducto, "versiones_productos_idx");
|
||||
|
||||
entity.HasIndex(e => e.idModelo, "versiones_modelosgruas_idx");
|
||||
|
||||
entity.Property(e => e.idVersion).ValueGeneratedNever();
|
||||
entity.Property(e => e.Observaciones).HasMaxLength(50);
|
||||
|
||||
entity.HasOne(d => d.idModeloNavigation).WithMany(p => p.versionesgruas)
|
||||
.HasForeignKey(d => d.idModelo)
|
||||
.HasConstraintName("versiones_modelosgruas");
|
||||
entity.HasOne(d => d.idProductoNavigation).WithMany(p => p.versionesgruas)
|
||||
.HasForeignKey(d => d.idProducto)
|
||||
.HasConstraintName("FK_versionesgruas_productos");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<vf_cuentas>(entity =>
|
||||
{
|
||||
entity
|
||||
.HasNoKey()
|
||||
.ToView("vf_cuentas");
|
||||
|
||||
entity.Property(e => e.Denominacion)
|
||||
.HasMaxLength(150)
|
||||
.HasDefaultValueSql("'0'");
|
||||
entity.Property(e => e.Ejercicio).HasMaxLength(40);
|
||||
entity.Property(e => e.Mote).HasMaxLength(40);
|
||||
entity.Property(e => e.NumeroCuenta).HasMaxLength(10);
|
||||
entity.Property(e => e.Observaciones).HasMaxLength(200);
|
||||
});
|
||||
|
||||
OnModelCreatingPartial(modelBuilder);
|
||||
|
||||
@@ -200,17 +200,13 @@
|
||||
"ObjectType": 0
|
||||
},
|
||||
{
|
||||
"Name": "marcasgruas",
|
||||
"Name": "marcas",
|
||||
"ObjectType": 0
|
||||
},
|
||||
{
|
||||
"Name": "menus",
|
||||
"ObjectType": 0
|
||||
},
|
||||
{
|
||||
"Name": "modelosgruas",
|
||||
"ObjectType": 0
|
||||
},
|
||||
{
|
||||
"Name": "movimientosbancarios",
|
||||
"ObjectType": 0
|
||||
@@ -282,6 +278,18 @@
|
||||
{
|
||||
"Name": "v_albaranesextendidos",
|
||||
"ObjectType": 3
|
||||
},
|
||||
{
|
||||
"Name": "v_apuntesagrupados",
|
||||
"ObjectType": 3
|
||||
},
|
||||
{
|
||||
"Name": "v_apuntesextendidos",
|
||||
"ObjectType": 3
|
||||
},
|
||||
{
|
||||
"Name": "vf_cuentas",
|
||||
"ObjectType": 3
|
||||
}
|
||||
],
|
||||
"UiHint": null,
|
||||
|
||||
Reference in New Issue
Block a user