git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C361
This commit is contained in:
parent
d58440b74e
commit
ea5eab4670
10 changed files with 74 additions and 1 deletions
|
|
@ -117,6 +117,7 @@
|
||||||
<Compile Include="Sinort\TipoProyecto.cs" />
|
<Compile Include="Sinort\TipoProyecto.cs" />
|
||||||
<Compile Include="Sinort\TipoSolicitud.cs" />
|
<Compile Include="Sinort\TipoSolicitud.cs" />
|
||||||
<Compile Include="Sinort\Usuario.cs" />
|
<Compile Include="Sinort\Usuario.cs" />
|
||||||
|
<Compile Include="Sinort\UsuariosEncuesta.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Atesa.Utilitarios\Atesa.Utilitarios.csproj">
|
<ProjectReference Include="..\Atesa.Utilitarios\Atesa.Utilitarios.csproj">
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,8 @@ namespace AYA.SlnSinortModel.Sinort
|
||||||
[StringLength(200)]
|
[StringLength(200)]
|
||||||
public string NombrePregunta { get; set; }
|
public string NombrePregunta { get; set; }
|
||||||
|
|
||||||
|
public bool? Requerido { get; set; }
|
||||||
|
|
||||||
[Column(TypeName = "ntext")]
|
[Column(TypeName = "ntext")]
|
||||||
public string RespuestaPregunta { get; set; }
|
public string RespuestaPregunta { get; set; }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ namespace AYA.SlnSinortModel.Sinort
|
||||||
public EncabezadoEncuesta()
|
public EncabezadoEncuesta()
|
||||||
{
|
{
|
||||||
DetalleEncuesta = new HashSet<DetalleEncuesta>();
|
DetalleEncuesta = new HashSet<DetalleEncuesta>();
|
||||||
|
UsuariosEncuesta = new HashSet<UsuariosEncuesta>();
|
||||||
}
|
}
|
||||||
|
|
||||||
[Key]
|
[Key]
|
||||||
|
|
@ -36,5 +37,8 @@ namespace AYA.SlnSinortModel.Sinort
|
||||||
|
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||||
public virtual ICollection<DetalleEncuesta> DetalleEncuesta { get; set; }
|
public virtual ICollection<DetalleEncuesta> DetalleEncuesta { get; set; }
|
||||||
|
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||||
|
public virtual ICollection<UsuariosEncuesta> UsuariosEncuesta { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ namespace AYA.SlnSinortModel.Sinort
|
||||||
|
|
||||||
public partial class SinortContex : Contex
|
public partial class SinortContex : Contex
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public virtual DbSet<Aplicacion> Aplicacion { get; set; }
|
public virtual DbSet<Aplicacion> Aplicacion { get; set; }
|
||||||
public virtual DbSet<AreaAplicacionDocumentoTecnico> AreaAplicacionDocumentoTecnico { get; set; }
|
public virtual DbSet<AreaAplicacionDocumentoTecnico> AreaAplicacionDocumentoTecnico { get; set; }
|
||||||
|
|
@ -51,6 +51,7 @@ namespace AYA.SlnSinortModel.Sinort
|
||||||
public virtual DbSet<ProyectoNormativo> ProyectoNormativo { get; set; }
|
public virtual DbSet<ProyectoNormativo> ProyectoNormativo { get; set; }
|
||||||
public virtual DbSet<Solicitud> Solicitud { get; set; }
|
public virtual DbSet<Solicitud> Solicitud { get; set; }
|
||||||
public virtual DbSet<TareasPendientes> TareasPendientes { get; set; }
|
public virtual DbSet<TareasPendientes> TareasPendientes { get; set; }
|
||||||
|
public virtual DbSet<UsuariosEncuesta> UsuariosEncuesta { get; set; }
|
||||||
|
|
||||||
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
||||||
{
|
{
|
||||||
|
|
@ -456,6 +457,11 @@ namespace AYA.SlnSinortModel.Sinort
|
||||||
.WithOptional(e => e.Usuario1)
|
.WithOptional(e => e.Usuario1)
|
||||||
.HasForeignKey(e => e.UsuarioSistema);
|
.HasForeignKey(e => e.UsuarioSistema);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Usuario>()
|
||||||
|
.HasMany(e => e.UsuariosEncuesta)
|
||||||
|
.WithRequired(e => e.Usuario)
|
||||||
|
.WillCascadeOnDelete(false);
|
||||||
|
|
||||||
modelBuilder.Entity<BitacoraDocumentos>()
|
modelBuilder.Entity<BitacoraDocumentos>()
|
||||||
.Property(e => e.UsuarioCreacion)
|
.Property(e => e.UsuarioCreacion)
|
||||||
.IsUnicode(false);
|
.IsUnicode(false);
|
||||||
|
|
@ -643,6 +649,12 @@ namespace AYA.SlnSinortModel.Sinort
|
||||||
.HasForeignKey(e => e.IdEncabezadoEncuesta)
|
.HasForeignKey(e => e.IdEncabezadoEncuesta)
|
||||||
.WillCascadeOnDelete(false);
|
.WillCascadeOnDelete(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<EncabezadoEncuesta>()
|
||||||
|
.HasMany(e => e.UsuariosEncuesta)
|
||||||
|
.WithRequired(e => e.EncabezadoEncuesta)
|
||||||
|
.HasForeignKey(e => e.IdEncabezadoEncuesta)
|
||||||
|
.WillCascadeOnDelete(false);
|
||||||
|
|
||||||
modelBuilder.Entity<FichaTecnica>()
|
modelBuilder.Entity<FichaTecnica>()
|
||||||
.Property(e => e.DescripcionDocumento)
|
.Property(e => e.DescripcionDocumento)
|
||||||
.IsUnicode(false);
|
.IsUnicode(false);
|
||||||
|
|
@ -852,6 +864,18 @@ namespace AYA.SlnSinortModel.Sinort
|
||||||
modelBuilder.Entity<TareasPendientes>()
|
modelBuilder.Entity<TareasPendientes>()
|
||||||
.Property(e => e.UsuarioModificacion)
|
.Property(e => e.UsuarioModificacion)
|
||||||
.IsUnicode(false);
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<UsuariosEncuesta>()
|
||||||
|
.Property(e => e.UsuarioSistema)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<UsuariosEncuesta>()
|
||||||
|
.Property(e => e.UsuarioCreacion)
|
||||||
|
.IsUnicode(false);
|
||||||
|
|
||||||
|
modelBuilder.Entity<UsuariosEncuesta>()
|
||||||
|
.Property(e => e.UsuarioModificacion)
|
||||||
|
.IsUnicode(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ namespace AYA.SlnSinortModel.Sinort
|
||||||
Solicitud = new HashSet<Solicitud>();
|
Solicitud = new HashSet<Solicitud>();
|
||||||
TareasPendientes = new HashSet<TareasPendientes>();
|
TareasPendientes = new HashSet<TareasPendientes>();
|
||||||
Solicitud1 = new HashSet<Solicitud>();
|
Solicitud1 = new HashSet<Solicitud>();
|
||||||
|
UsuariosEncuesta = new HashSet<UsuariosEncuesta>();
|
||||||
}
|
}
|
||||||
|
|
||||||
[Key]
|
[Key]
|
||||||
|
|
@ -55,5 +56,8 @@ namespace AYA.SlnSinortModel.Sinort
|
||||||
|
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||||
public virtual ICollection<Solicitud> Solicitud1 { get; set; }
|
public virtual ICollection<Solicitud> Solicitud1 { get; set; }
|
||||||
|
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||||
|
public virtual ICollection<UsuariosEncuesta> UsuariosEncuesta { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
38
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/UsuariosEncuesta.cs
Normal file
38
AYA.SlnSynor/AYA.SlnSynorModel/Sinort/UsuariosEncuesta.cs
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
namespace AYA.SlnSinortModel.Sinort
|
||||||
|
{
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
using System.Data.Entity.Spatial;
|
||||||
|
|
||||||
|
[Table("Global.UsuariosEncuesta")]
|
||||||
|
public partial class UsuariosEncuesta
|
||||||
|
{
|
||||||
|
[Key]
|
||||||
|
[Column(Order = 0)]
|
||||||
|
[StringLength(200)]
|
||||||
|
public string UsuarioSistema { get; set; }
|
||||||
|
|
||||||
|
[Key]
|
||||||
|
[Column(Order = 1)]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
public int IdEncabezadoEncuesta { get; set; }
|
||||||
|
|
||||||
|
public bool? Estado { get; set; }
|
||||||
|
|
||||||
|
public DateTime? FechaCreacion { get; set; }
|
||||||
|
|
||||||
|
[StringLength(500)]
|
||||||
|
public string UsuarioCreacion { get; set; }
|
||||||
|
|
||||||
|
public DateTime? FechaModificacion { get; set; }
|
||||||
|
|
||||||
|
[StringLength(500)]
|
||||||
|
public string UsuarioModificacion { get; set; }
|
||||||
|
|
||||||
|
public virtual Usuario Usuario { get; set; }
|
||||||
|
|
||||||
|
public virtual EncabezadoEncuesta EncabezadoEncuesta { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Reference in a new issue