summaryrefslogtreecommitdiff
path: root/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/LogEmailMap.cs
diff options
context:
space:
mode:
authorLucas Faria Mendes <lucas.fariamo08@gmail.com>2026-03-30 13:38:18 +0000
committerLucas Faria Mendes <lucas.fariamo08@gmail.com>2026-03-30 13:38:18 +0000
commit1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1 (patch)
treee1c3b20ea08f0cf71122a1e73f0d395f8fd83874 /Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/LogEmailMap.cs
parent674ca83ba9243a9e95a7568c797668dab6aee26a (diff)
downloadgestor-1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1.tar.gz
gestor-1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1.zip
chore: location
Diffstat (limited to 'Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/LogEmailMap.cs')
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/LogEmailMap.cs34
1 files changed, 34 insertions, 0 deletions
diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/LogEmailMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/LogEmailMap.cs
new file mode 100644
index 0000000..1bd1140
--- /dev/null
+++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/LogEmailMap.cs
@@ -0,0 +1,34 @@
+using FluentNHibernate.Mapping;
+using Gestor.Infrastructure.Entities.Ferramentas;
+using Gestor.Infrastructure.Entities.Generic;
+using System;
+using System.Linq.Expressions;
+using System.Runtime.CompilerServices;
+
+namespace Gestor.Infrastructure.Mappings.Ferramentas
+{
+ public class LogEmailMap : ClassMap<LogEmailDb>
+ {
+ public LogEmailMap()
+ {
+ base.Table("LogEmail");
+ base.LazyLoad();
+ base.Id((LogEmailDb x) => (object)x.Id).GeneratedBy.Identity();
+ base.References<CredencialDb>((LogEmailDb x) => x.Credencial);
+ base.References<UsuarioDb>((LogEmailDb x) => x.Usuario);
+ base.Map((LogEmailDb x) => (object)x.Tela).CustomType<TipoTela>();
+ base.Map((LogEmailDb x) => (object)x.Data);
+ base.Map((LogEmailDb x) => x.Destinatarios).CustomType("StringClob").CustomSqlType("varchar(MAX)");
+ base.Map((LogEmailDb x) => x.Assunto).CustomType("StringClob").CustomSqlType("varchar(MAX)");
+ base.Map((LogEmailDb x) => (object)x.EntityId);
+ base.Map((LogEmailDb x) => x.Cco).CustomType("StringClob").CustomSqlType("varchar(MAX)");
+ base.Map((LogEmailDb x) => x.Corpo).CustomType("StringClob").CustomSqlType("varchar(MAX)");
+ base.Map((LogEmailDb x) => x.Anexos).CustomType("StringClob").CustomSqlType("varchar(MAX)");
+ base.Map((LogEmailDb x) => x.Versao);
+ base.Map((LogEmailDb x) => x.NomeMaquina);
+ base.Map((LogEmailDb x) => x.UsuarioMaquina);
+ base.Map((LogEmailDb x) => x.Ip);
+ base.Map((LogEmailDb x) => (object)x.Relatorio).CustomType<Relatorio>();
+ }
+ }
+} \ No newline at end of file