git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C150
This commit is contained in:
parent
f8504389b0
commit
b50020d651
3 changed files with 27 additions and 19 deletions
|
|
@ -6,13 +6,15 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.Spatial;
|
||||
|
||||
[Table("Catalogos.Calendario")]
|
||||
[Table("Global.Calendario")]
|
||||
public partial class Calendario
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int IdCalendario { get; set; }
|
||||
|
||||
public int? IdProyectoNormativo { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string Titulo { get; set; }
|
||||
|
||||
|
|
@ -32,5 +34,7 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
|
||||
[StringLength(200)]
|
||||
public string UsuarioModificacion { get; set; }
|
||||
|
||||
public virtual ProyectoNormativo ProyectoNormativo { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public ProyectoNormativo()
|
||||
{
|
||||
Calendario = new HashSet<Calendario>();
|
||||
ComentariosProyecto = new HashSet<ComentariosProyecto>();
|
||||
Convocatoria = new HashSet<Convocatoria>();
|
||||
}
|
||||
|
|
@ -69,6 +70,9 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
|
||||
public virtual TipoProyecto TipoProyecto { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Calendario> Calendario { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<ComentariosProyecto> ComentariosProyecto { get; set; }
|
||||
|
||||
|
|
|
|||
|
|
@ -8,10 +8,9 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
|
||||
public partial class SinortContex : Contex
|
||||
{
|
||||
|
||||
|
||||
|
||||
public virtual DbSet<Aplicacion> Aplicacion { get; set; }
|
||||
public virtual DbSet<Calendario> Calendario { get; set; }
|
||||
public virtual DbSet<Categoria> Categoria { get; set; }
|
||||
public virtual DbSet<Contenido> Contenido { get; set; }
|
||||
public virtual DbSet<DocumentoTecnico> DocumentoTecnico { get; set; }
|
||||
|
|
@ -38,6 +37,7 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
public virtual DbSet<BitacoraDocumentos> BitacoraDocumentos { get; set; }
|
||||
public virtual DbSet<Documentos> Documentos { get; set; }
|
||||
public virtual DbSet<DocumentosAdjuntos> DocumentosAdjuntos { get; set; }
|
||||
public virtual DbSet<Calendario> Calendario { get; set; }
|
||||
public virtual DbSet<ComentariosProyecto> ComentariosProyecto { get; set; }
|
||||
public virtual DbSet<Convocatoria> Convocatoria { get; set; }
|
||||
public virtual DbSet<ProyectoNormativo> ProyectoNormativo { get; set; }
|
||||
|
|
@ -56,22 +56,6 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
.Property(e => e.UsuarioModificacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Calendario>()
|
||||
.Property(e => e.Titulo)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Calendario>()
|
||||
.Property(e => e.Descripcion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Calendario>()
|
||||
.Property(e => e.UsuarioCreacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Calendario>()
|
||||
.Property(e => e.UsuarioModificacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Categoria>()
|
||||
.Property(e => e.Descripcion)
|
||||
.IsUnicode(false);
|
||||
|
|
@ -446,6 +430,22 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
.Property(e => e.UsuarioModificacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Calendario>()
|
||||
.Property(e => e.Titulo)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Calendario>()
|
||||
.Property(e => e.Descripcion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Calendario>()
|
||||
.Property(e => e.UsuarioCreacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<Calendario>()
|
||||
.Property(e => e.UsuarioModificacion)
|
||||
.IsUnicode(false);
|
||||
|
||||
modelBuilder.Entity<ComentariosProyecto>()
|
||||
.Property(e => e.DescTipoComentario)
|
||||
.IsUnicode(false);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue