diff --git a/AYA.SlnSynor/AYA.SlnSynor.WCF/Web.config b/AYA.SlnSynor/AYA.SlnSynor.WCF/Web.config index 65618e0d2..87cc7e1ca 100644 --- a/AYA.SlnSynor/AYA.SlnSynor.WCF/Web.config +++ b/AYA.SlnSynor/AYA.SlnSynor.WCF/Web.config @@ -102,7 +102,7 @@ - - + + diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSinortModel.csproj b/AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSinortModel.csproj index b08baa990..7145b20f4 100644 --- a/AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSinortModel.csproj +++ b/AYA.SlnSynor/AYA.SlnSynorModel/AYA.SlnSinortModel.csproj @@ -69,16 +69,13 @@ - - - @@ -89,12 +86,10 @@ - - diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/App.config b/AYA.SlnSynor/AYA.SlnSynorModel/App.config index e3b66800d..e10b1e80f 100644 --- a/AYA.SlnSynor/AYA.SlnSynorModel/App.config +++ b/AYA.SlnSynor/AYA.SlnSynorModel/App.config @@ -17,8 +17,4 @@ - - - - \ No newline at end of file diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/ComentariosForo.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/ComentariosForo.cs deleted file mode 100644 index cc06a5c3a..000000000 --- a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/ComentariosForo.cs +++ /dev/null @@ -1,39 +0,0 @@ -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.ComentariosForo")] - public partial class ComentariosForo - { - [Key] - [DatabaseGenerated(DatabaseGeneratedOption.None)] - public int IdComentarioForo { get; set; } - - public int? IdForo { get; set; } - - [StringLength(200)] - public string Asunto { get; set; } - - public int? IdUsuario { get; set; } - - public string Respuesta { get; set; } - - public int? IdDocumento { 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; } - - public virtual Documentos Documentos { get; set; } - } -} diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/ConvocatoriaProyectoNormativo.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/ConvocatoriaProyectoNormativo.cs deleted file mode 100644 index 2a1324c23..000000000 --- a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/ConvocatoriaProyectoNormativo.cs +++ /dev/null @@ -1,41 +0,0 @@ -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("Normativo.ConvocatoriaProyectoNormativo")] - public partial class ConvocatoriaProyectoNormativo - { - [Key] - [Column(Order = 0)] - [StringLength(200)] - public string UsuarioSistema { get; set; } - - [Key] - [Column(Order = 1)] - [DatabaseGenerated(DatabaseGeneratedOption.None)] - public int IdProyectoNormativo { get; set; } - - public DateTime? FechaCreacion { get; set; } - - public bool? Estado { get; set; } - - [StringLength(500)] - public string Justificación { get; set; } - - [StringLength(200)] - public string UsuarioCreacion { get; set; } - - public DateTime? FechaModificacion { get; set; } - - [StringLength(200)] - public string UsuarioModificacion { get; set; } - - public virtual Usuario Usuario { get; set; } - - public virtual ProyectoNormativo ProyectoNormativo { get; set; } - } -} diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Foro.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Foro.cs deleted file mode 100644 index d5d0be454..000000000 --- a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Foro.cs +++ /dev/null @@ -1,58 +0,0 @@ -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.Foro")] - public partial class Foro - { - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] - public Foro() - { - ComentariosForo = new HashSet(); - Convocatoria = new HashSet(); - ProyectoNormativo = new HashSet(); - } - - [Key] - [DatabaseGenerated(DatabaseGeneratedOption.None)] - public int IdForo { get; set; } - - public int? IdTipoForo { get; set; } - - [StringLength(200)] - public string Tema { get; set; } - - public DateTime? FechaInicio { get; set; } - - public DateTime? FechaCierre { get; set; } - - public int? PromotorForo { get; set; } - - public DateTime? FechaMaximaConfirmarParticipacion { 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; } - - public virtual TipoForo TipoForo { get; set; } - - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] - public virtual ICollection ComentariosForo { get; set; } - - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] - public virtual ICollection Convocatoria { get; set; } - - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] - public virtual ICollection ProyectoNormativo { get; set; } - } -} diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs new file mode 100644 index 000000000..dfc4f13ad --- /dev/null +++ b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/SinortContex.cs @@ -0,0 +1,407 @@ +namespace AYA.SlnSinortModel.Sinort +{ + using System; + using System.Data.Entity; + using System.ComponentModel.DataAnnotations.Schema; + using System.Linq; + using AYA.SlnSinortModel.Sinort.Partial; + + public partial class SinortContex : Contex + { + public virtual DbSet Aplicacion { get; set; } + public virtual DbSet Categoria { get; set; } + public virtual DbSet Emisor { get; set; } + public virtual DbSet Estado { get; set; } + public virtual DbSet Mantenimiento { get; set; } + public virtual DbSet Pantallas { get; set; } + public virtual DbSet PlantillaEmail { get; set; } + public virtual DbSet Roles { get; set; } + public virtual DbSet RolesPantallas { get; set; } + public virtual DbSet RolesUsuario { get; set; } + public virtual DbSet TipoAplicacion { get; set; } + public virtual DbSet TipoDocumento { get; set; } + public virtual DbSet TipoEmisor { get; set; } + public virtual DbSet TipoEstado { get; set; } + public virtual DbSet TipoMatriz { get; set; } + public virtual DbSet TipoProyecto { get; set; } + public virtual DbSet Usuario { get; set; } + public virtual DbSet BitacoraDocumentos { get; set; } + public virtual DbSet Documentos { get; set; } + public virtual DbSet DocumentosAdjuntos { get; set; } + public virtual DbSet ComentariosMatriz { get; set; } + public virtual DbSet ComentariosProyecto { get; set; } + public virtual DbSet Convocatoria { get; set; } + public virtual DbSet Matriz { get; set; } + public virtual DbSet ProyectoNormativo { get; set; } + + protected override void OnModelCreating(DbModelBuilder modelBuilder) + { + modelBuilder.Entity() + .Property(e => e.Descripcion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Descripcion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Descripcion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Descripcion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Catalogo) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Vista) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Descripcion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Vista) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.NombrePlatilla) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Body) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Subject) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Descripcion) + .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); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioSistema) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Descripcion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Descripcion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Descripcion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Descripcion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Descripcion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Descripcion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioSistema) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.NombreUsuario) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.EmailUsuario) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .HasMany(e => e.Convocatoria) + .WithRequired(e => e.Usuario) + .WillCascadeOnDelete(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.NombreDocumento) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .HasMany(e => e.BitacoraDocumentos) + .WithRequired(e => e.Documentos) + .WillCascadeOnDelete(false); + + modelBuilder.Entity() + .Property(e => e.Nombre) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.TipoArchivo) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Asunto) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Capitulo) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.ApartadoSeccionParrafo) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.TextoOriginal) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.TextoPropuesto) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.ComentarioObservacionJustificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Asunto) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioSistema) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Respuesta) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioSistema) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.Justificacion) + .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); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.NombreProyectoNormativo) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.PromotorProyecto) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioCreacion) + .IsUnicode(false); + + modelBuilder.Entity() + .Property(e => e.UsuarioModificacion) + .IsUnicode(false); + + modelBuilder.Entity() + .HasMany(e => e.Convocatoria) + .WithRequired(e => e.ProyectoNormativo) + .WillCascadeOnDelete(false); + } + } +} diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/TipoForo.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/TipoForo.cs deleted file mode 100644 index cd5ea7fb3..000000000 --- a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/TipoForo.cs +++ /dev/null @@ -1,38 +0,0 @@ -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.TipoForo")] - public partial class TipoForo - { - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] - public TipoForo() - { - Foro = new HashSet(); - } - - [Key] - [DatabaseGenerated(DatabaseGeneratedOption.None)] - public int IdTipoForo { get; set; } - - [StringLength(200)] - public string Descripcion { 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; } - - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] - public virtual ICollection Foro { get; set; } - } -} diff --git a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/sysdiagrams.cs b/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/sysdiagrams.cs deleted file mode 100644 index 6966c7270..000000000 --- a/AYA.SlnSynor/AYA.SlnSynorModel/Sinort/sysdiagrams.cs +++ /dev/null @@ -1,24 +0,0 @@ -namespace AYA.SlnSinortModel.Sinort -{ - using System; - using System.Collections.Generic; - using System.ComponentModel.DataAnnotations; - using System.ComponentModel.DataAnnotations.Schema; - using System.Data.Entity.Spatial; - - public partial class sysdiagrams - { - [Required] - [StringLength(128)] - public string name { get; set; } - - public int principal_id { get; set; } - - [Key] - public int diagram_id { get; set; } - - public int? version { get; set; } - - public byte[] definition { get; set; } - } -}