From 13c0b70b92e4eb1f80873d6f1f479f1984b4ca41 Mon Sep 17 00:00:00 2001 From: jnunez Date: Wed, 5 Sep 2018 19:52:18 +0000 Subject: [PATCH] git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C449 --- .../AYA.SlnSinortModel.csproj | 1 + .../AYA.SlnSynorModel/Sinort/SinortContex.cs | 43 +++++++++++++++++- .../Sinort/UsuarioExterno.cs | 44 +++++++++++++++++++ 3 files changed, 87 insertions(+), 1 deletion(-) create mode 100644 AYA.SlnSynor/AYA.SlnSynorModel/Sinort/UsuarioExterno.cs diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSinortModel.csproj b/AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSinortModel.csproj index 11c7add96..627978eec 100644 --- a/AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSinortModel.csproj +++ b/AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSinortModel.csproj @@ -124,6 +124,7 @@ + diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs index c51779a81..4f95d41d6 100644 --- a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs +++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs @@ -8,7 +8,7 @@ namespace AYA.SlnSinortModel.Sinort public partial class SinortContex : Contex { - + public virtual DbSet Aplicacion { get; set; } public virtual DbSet AreaAplicacionDocumentoTecnico { get; set; } @@ -38,6 +38,7 @@ namespace AYA.SlnSinortModel.Sinort public virtual DbSet TipoProyecto { get; set; } public virtual DbSet TipoSolicitud { get; set; } public virtual DbSet Usuario { get; set; } + public virtual DbSet UsuarioExterno { get; set; } public virtual DbSet BitacoraDocumentos { get; set; } public virtual DbSet Documentos { get; set; } public virtual DbSet DocumentosAdjuntos { get; set; } @@ -499,6 +500,38 @@ namespace AYA.SlnSinortModel.Sinort .WithRequired(e => e.Usuario) .WillCascadeOnDelete(false); + modelBuilder.Entity() + .Property(e => e.Usuario) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Password) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Nombre) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Apellido1) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Apellido2) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Email) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + modelBuilder.Entity() .Property(e => e.UsuarioCreacion) .IsUnicode(false); @@ -540,6 +573,10 @@ namespace AYA.SlnSinortModel.Sinort .Property(e => e.TipoArchivo) .IsUnicode(false); + modelBuilder.Entity() + .Property(e => e.TipoExpediente) + .IsUnicode(false); + modelBuilder.Entity() .Property(e => e.UsuarioCreacion) .IsUnicode(false); @@ -641,6 +678,10 @@ namespace AYA.SlnSinortModel.Sinort .Property(e => e.Justificacion) .IsUnicode(false); + modelBuilder.Entity() + .Property(e => e.AsuntoDiscusionFocalizada) + .IsUnicode(false); + modelBuilder.Entity() .Property(e => e.UsuarioCreacion) .IsUnicode(false); diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/UsuarioExterno.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/UsuarioExterno.cs new file mode 100644 index 000000000..595bd104c --- /dev/null +++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/UsuarioExterno.cs @@ -0,0 +1,44 @@ +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("Catalogos.UsuarioExterno")] + public partial class UsuarioExterno + { + [Key] + [StringLength(200)] + public string Usuario { get; set; } + + [Required] + [StringLength(200)] + public string Password { get; set; } + + [StringLength(200)] + public string Nombre { get; set; } + + [StringLength(200)] + public string Apellido1 { get; set; } + + [StringLength(200)] + public string Apellido2 { get; set; } + + [StringLength(200)] + public string Email { get; set; } + + public bool? Estado { get; set; } + + public DateTime? FechaCreacion { get; set; } + + [StringLength(200)] + public string UsuarioCreacion { get; set; } + + public DateTime? FechaModificacion { get; set; } + + [StringLength(200)] + public string UsuarioModificacion { get; set; } + } +}