62 lines
2.1 KiB
C#
62 lines
2.1 KiB
C#
|
|
namespace ULA.Cathay.CreditoModel.ComponentManager
|
||
|
|
{
|
||
|
|
using System;
|
||
|
|
using System.Data.Entity;
|
||
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
||
|
|
using System.Linq;
|
||
|
|
|
||
|
|
public partial class ComponentContex : DbContext
|
||
|
|
{
|
||
|
|
public ComponentContex()
|
||
|
|
: base(new Ultimus.Utilitarios.ObtieneParametros().GetValueKeyRegedit("UltimusComponentManager", true))
|
||
|
|
{
|
||
|
|
Configuration.ProxyCreationEnabled = false;
|
||
|
|
Configuration.LazyLoadingEnabled = true;
|
||
|
|
Database.SetInitializer<ComponentContex>(null);
|
||
|
|
}
|
||
|
|
|
||
|
|
public virtual DbSet<BitacoraComentarios> BitacoraComentarios { get; set; }
|
||
|
|
public virtual DbSet<BitacoraCorreos> BitacoraCorreos { get; set; }
|
||
|
|
public virtual DbSet<DocumentosAdjuntos> DocumentosAdjuntos { get; set; }
|
||
|
|
|
||
|
|
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
||
|
|
{
|
||
|
|
modelBuilder.Entity<BitacoraComentarios>()
|
||
|
|
.Property(e => e.UserID)
|
||
|
|
.IsUnicode(false);
|
||
|
|
|
||
|
|
modelBuilder.Entity<BitacoraComentarios>()
|
||
|
|
.Property(e => e.Etapa)
|
||
|
|
.IsUnicode(false);
|
||
|
|
|
||
|
|
modelBuilder.Entity<BitacoraCorreos>()
|
||
|
|
.Property(e => e.UserID)
|
||
|
|
.IsUnicode(false);
|
||
|
|
|
||
|
|
modelBuilder.Entity<BitacoraCorreos>()
|
||
|
|
.Property(e => e.NombreProceso)
|
||
|
|
.IsUnicode(false);
|
||
|
|
|
||
|
|
modelBuilder.Entity<BitacoraCorreos>()
|
||
|
|
.Property(e => e.NombreFiltro)
|
||
|
|
.IsUnicode(false);
|
||
|
|
|
||
|
|
modelBuilder.Entity<DocumentosAdjuntos>()
|
||
|
|
.Property(e => e.NombreProceso)
|
||
|
|
.IsUnicode(false);
|
||
|
|
|
||
|
|
modelBuilder.Entity<DocumentosAdjuntos>()
|
||
|
|
.Property(e => e.UserID)
|
||
|
|
.IsUnicode(false);
|
||
|
|
|
||
|
|
modelBuilder.Entity<DocumentosAdjuntos>()
|
||
|
|
.Property(e => e.Etapa)
|
||
|
|
.IsUnicode(false);
|
||
|
|
|
||
|
|
modelBuilder.Entity<DocumentosAdjuntos>()
|
||
|
|
.Property(e => e.TipoArchivo)
|
||
|
|
.IsUnicode(false);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|