From 1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1 Mon Sep 17 00:00:00 2001 From: Lucas Faria Mendes Date: Mon, 30 Mar 2026 10:38:18 -0300 Subject: chore: location --- .../AtividadeMap.cs | 21 +++++++++ .../AtualizacaoMap.cs | 19 ++++++++ .../BancoMap.cs | 21 +++++++++ .../ControleArquivoDigitalMap.cs | 21 +++++++++ .../EmpresaMap.cs | 53 ++++++++++++++++++++++ .../IndiceArquivoDigitalMap.cs | 47 +++++++++++++++++++ .../ModeloMalaDiretaMap.cs | 21 +++++++++ .../ProfissaoMap.cs | 22 +++++++++ .../RegistroAcaoMap.cs | 31 +++++++++++++ .../RegistroLogMap.cs | 31 +++++++++++++ .../SocioMap.cs | 25 ++++++++++ 11 files changed, 312 insertions(+) create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/AtividadeMap.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/AtualizacaoMap.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/BancoMap.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/ControleArquivoDigitalMap.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/EmpresaMap.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/IndiceArquivoDigitalMap.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/ModeloMalaDiretaMap.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/ProfissaoMap.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/RegistroAcaoMap.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/RegistroLogMap.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/SocioMap.cs (limited to 'Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common') diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/AtividadeMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/AtividadeMap.cs new file mode 100644 index 0000000..b484da6 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/AtividadeMap.cs @@ -0,0 +1,21 @@ +using FluentNHibernate.Mapping; +using Gestor.Infrastructure.Entities.Common; +using Gestor.Infrastructure.Entities.Generic; +using System; +using System.Linq.Expressions; +using System.Runtime.CompilerServices; + +namespace Gestor.Infrastructure.Mappings.Common +{ + public class AtividadeMap : ClassMap + { + public AtividadeMap() + { + base.Table("atividade"); + base.LazyLoad(); + base.Id((AtividadeDb x) => (object)x.Id).GeneratedBy.Assigned().Column("idatividade"); + base.Map((AtividadeDb x) => x.Cnac).Column("cnac"); + base.Map((AtividadeDb x) => x.Nome).Column("atividade"); + } + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/AtualizacaoMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/AtualizacaoMap.cs new file mode 100644 index 0000000..e6d6199 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/AtualizacaoMap.cs @@ -0,0 +1,19 @@ +using FluentNHibernate.Mapping; +using Gestor.Infrastructure.Entities.Common; +using System; +using System.Linq.Expressions; +using System.Runtime.CompilerServices; + +namespace Gestor.Infrastructure.Mappings.Common +{ + public class AtualizacaoMap : ClassMap + { + public AtualizacaoMap() + { + base.Table("AtualizacaoDados"); + base.LazyLoad(); + base.Id((AtualizacaoDb x) => (object)x.IdArquivo).GeneratedBy.Assigned().Column("IdArquivo"); + base.Map((AtualizacaoDb x) => (object)x.DataAtualizacao).Column("DataAtualizacao").Not.Nullable(); + } + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/BancoMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/BancoMap.cs new file mode 100644 index 0000000..84e8420 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/BancoMap.cs @@ -0,0 +1,21 @@ +using FluentNHibernate.Mapping; +using Gestor.Infrastructure.Entities.Common; +using System; +using System.Linq.Expressions; +using System.Runtime.CompilerServices; + +namespace Gestor.Infrastructure.Mappings.Common +{ + public class BancoMap : ClassMap + { + public BancoMap() + { + base.Table("codigobanco"); + base.LazyLoad(); + base.Id((BancoDb x) => (object)x.Id).GeneratedBy.Assigned().Column("idcodigobanco"); + base.Map((BancoDb x) => (object)x.Codigo).Column("codigo"); + base.Map((BancoDb x) => x.Nome).Column("nomebanco"); + base.Map((BancoDb x) => x.Site).Column("paginainternet"); + } + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/ControleArquivoDigitalMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/ControleArquivoDigitalMap.cs new file mode 100644 index 0000000..f65b72f --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/ControleArquivoDigitalMap.cs @@ -0,0 +1,21 @@ +using FluentNHibernate.Mapping; +using Gestor.Infrastructure.Entities.Common; +using Gestor.Infrastructure.Entities.Generic; +using System; +using System.Linq.Expressions; +using System.Runtime.CompilerServices; + +namespace Gestor.Infrastructure.Mappings.Common +{ + public class ControleArquivoDigitalMap : ClassMap + { + public ControleArquivoDigitalMap() + { + base.Table("controledbad"); + base.LazyLoad(); + base.Id((ControleArquivoDigitalDb x) => (object)x.Id).GeneratedBy.Identity().Column("idcontroledbad"); + base.Map((ControleArquivoDigitalDb x) => x.Catalogo).Column("bdname"); + base.Map((ControleArquivoDigitalDb x) => x.Tabela).Column("tabela"); + } + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/EmpresaMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/EmpresaMap.cs new file mode 100644 index 0000000..53d2e0c --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/EmpresaMap.cs @@ -0,0 +1,53 @@ +using FluentNHibernate.Mapping; +using Gestor.Infrastructure.Entities.Common; +using Gestor.Infrastructure.Entities.Generic; +using System; +using System.Linq.Expressions; +using System.Runtime.CompilerServices; + +namespace Gestor.Infrastructure.Mappings.Common +{ + public class EmpresaMap : ClassMap + { + public EmpresaMap() + { + base.Table("empresa"); + base.LazyLoad(); + base.Id((EmpresaDb x) => (object)x.Id).GeneratedBy.Identity().Column("idempresa"); + base.Map((EmpresaDb x) => x.Nome).Column("nome").Not.Nullable(); + base.Map((EmpresaDb x) => x.NomeSocial); + base.Map((EmpresaDb x) => x.Documento).Column("cgccpf"); + base.Map((EmpresaDb x) => x.Serial).Column("ns"); + base.Map((EmpresaDb x) => x.Cep).Column("cep"); + base.Map((EmpresaDb x) => x.Endereco).Column("endereco"); + base.Map((EmpresaDb x) => x.Numero).Column("numero"); + base.Map((EmpresaDb x) => x.Complemento).Column("complemento"); + base.Map((EmpresaDb x) => x.Bairro).Column("bairro"); + base.Map((EmpresaDb x) => x.Cidade).Column("cidade"); + base.Map((EmpresaDb x) => x.Estado).Column("uf"); + base.Map((EmpresaDb x) => x.Site).Column("site"); + base.Map((EmpresaDb x) => x.Email).Column("email"); + base.Map((EmpresaDb x) => (object)x.TipoTelefone1).CustomType(); + base.Map((EmpresaDb x) => x.PrimeiroPrefixo).Column("ddd"); + base.Map((EmpresaDb x) => x.PrimeiroTelefone).Column("telefone"); + base.Map((EmpresaDb x) => (object)x.TipoTelefone2).CustomType(); + base.Map((EmpresaDb x) => x.SegundoPrefixo).Column("ddd2"); + base.Map((EmpresaDb x) => x.SegundoTelefone).Column("telefone2"); + base.Map((EmpresaDb x) => (object)x.QuantidadeFuncionarios).Column("nfuncionarios"); + base.Map((EmpresaDb x) => x.QuantidadeFiliais).Column("unidade"); + base.Map((EmpresaDb x) => x.Responsavel).Column("nomeresponsavel"); + base.Map((EmpresaDb x) => x.EmailResponsavel).Column("emailresponsavel"); + base.Map((EmpresaDb x) => x.SenhaAdmin).Column("senhaadm"); + base.Map((EmpresaDb x) => x.Facebook); + base.Map((EmpresaDb x) => x.Instagram); + base.Map((EmpresaDb x) => x.Linkdin); + base.Map((EmpresaDb x) => x.Whatsapp); + base.Map((EmpresaDb x) => x.WhatsappSinistro); + base.Map((EmpresaDb x) => x.Twitter); + base.Map((EmpresaDb x) => x.Localizacao); + base.Map((EmpresaDb x) => x.Logo).CustomSqlType("varbinary(max)").Length(2147483647); + base.Map((EmpresaDb x) => x.LogoId); + base.Map((EmpresaDb x) => (object)x.MaxFileSize).Column("filesize"); + } + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/IndiceArquivoDigitalMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/IndiceArquivoDigitalMap.cs new file mode 100644 index 0000000..0ca7a29 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/IndiceArquivoDigitalMap.cs @@ -0,0 +1,47 @@ +using FluentNHibernate.Mapping; +using Gestor.Infrastructure.Entities.Common; +using Gestor.Infrastructure.Entities.Generic; +using System; +using System.Linq.Expressions; +using System.Runtime.CompilerServices; + +namespace Gestor.Infrastructure.Mappings.Common +{ + public class IndiceArquivoDigitalMap : ClassMap + { + public IndiceArquivoDigitalMap() + { + base.Table("newarquivodigital"); + base.LazyLoad(); + base.Id((IndiceArquivoDigitalDb x) => (object)x.Id).GeneratedBy.Identity().Column("idnewarquivodigital"); + base.Map((IndiceArquivoDigitalDb x) => (object)x.IdArquivoDigital).Column("idarquivodigital").Not.Nullable(); + base.Map((IndiceArquivoDigitalDb x) => x.BD).Column("banco"); + base.Map((IndiceArquivoDigitalDb x) => x.Descricao).Column("descricao"); + base.Map((IndiceArquivoDigitalDb x) => x.Extensao).Column("extension"); + base.Map((IndiceArquivoDigitalDb x) => (object)x.IdCliente).Column("idcliente"); + base.Map((IndiceArquivoDigitalDb x) => (object)x.IdDocumento).Column("iddocumento"); + base.Map((IndiceArquivoDigitalDb x) => (object)x.IdItem).Column("iditem"); + base.Map((IndiceArquivoDigitalDb x) => (object)x.IdParcela).Column("idparcela"); + base.Map((IndiceArquivoDigitalDb x) => (object)x.IdSinistro).Column("idsinistro"); + base.Map((IndiceArquivoDigitalDb x) => (object)x.IdSeguradora).Column("idciaseg"); + base.Map((IndiceArquivoDigitalDb x) => (object)x.IdVendedor).Column("idvendedor"); + base.Map((IndiceArquivoDigitalDb x) => (object)x.IdExtrato).Column("idextrato"); + base.Map((IndiceArquivoDigitalDb x) => (object)x.IdEmpresa).Column("idempresa"); + base.Map((IndiceArquivoDigitalDb x) => (object)x.IdLancamento).Column("idlancamen"); + base.Map((IndiceArquivoDigitalDb x) => (object)x.IdFornecedor).Column("idfornecedor"); + base.Map((IndiceArquivoDigitalDb x) => (object)x.IdProspeccao).Column("idvenctoaleatorio"); + base.Map((IndiceArquivoDigitalDb x) => (object)x.IdSocio).Column("idsocio"); + base.Map((IndiceArquivoDigitalDb x) => (object)x.IdTarefa); + base.Map((IndiceArquivoDigitalDb x) => (object)x.IdNotaFiscal); + base.Map((IndiceArquivoDigitalDb x) => (object)x.IdEstipulante); + base.Map((IndiceArquivoDigitalDb x) => (object)x.Excluido).Column("excluido").CustomType(); + base.Map((IndiceArquivoDigitalDb x) => (object)x.IdUsuario).Column("idusuarioarquivo"); + base.Map((IndiceArquivoDigitalDb x) => (object)x.UsuarioCriacao).Column("usuariocriacao"); + base.Map((IndiceArquivoDigitalDb x) => (object)x.UsuarioAtualizacao).Column("usuarioalteracao"); + base.Map((IndiceArquivoDigitalDb x) => (object)x.DataCriacao).Column("datacriacao"); + base.Map((IndiceArquivoDigitalDb x) => (object)x.DataAtualizacao).Column("dataalteracao"); + base.Map((IndiceArquivoDigitalDb x) => (object)x.AzureGuid); + base.Map((IndiceArquivoDigitalDb i) => i.AzureStorage).CustomType("AnsiString").Length(100).Default(string.Empty); + } + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/ModeloMalaDiretaMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/ModeloMalaDiretaMap.cs new file mode 100644 index 0000000..bdd6a1a --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/ModeloMalaDiretaMap.cs @@ -0,0 +1,21 @@ +using FluentNHibernate.Mapping; +using Gestor.Infrastructure.Entities.Common; +using Gestor.Infrastructure.Entities.Generic; +using System; +using System.Linq.Expressions; +using System.Runtime.CompilerServices; + +namespace Gestor.Infrastructure.Mappings.Common +{ + public class ModeloMalaDiretaMap : ClassMap + { + public ModeloMalaDiretaMap() + { + base.Table("ModeloMalaDireta"); + base.LazyLoad(); + base.Id((ModeloMalaDiretaDb x) => (object)x.Id).GeneratedBy.Identity(); + base.Map((ModeloMalaDiretaDb x) => x.Assunto); + base.Map((ModeloMalaDiretaDb x) => x.Corpo).CustomType("StringClob").CustomSqlType("varchar(MAX)"); + } + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/ProfissaoMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/ProfissaoMap.cs new file mode 100644 index 0000000..c42619d --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/ProfissaoMap.cs @@ -0,0 +1,22 @@ +using FluentNHibernate.Mapping; +using Gestor.Infrastructure.Entities.Common; +using Gestor.Infrastructure.Entities.Generic; +using System; +using System.Linq.Expressions; +using System.Runtime.CompilerServices; + +namespace Gestor.Infrastructure.Mappings.Common +{ + public class ProfissaoMap : ClassMap + { + public ProfissaoMap() + { + base.Table("profissao"); + base.LazyLoad(); + base.Id((ProfissaoDb x) => (object)x.Id).GeneratedBy.Assigned().Column("idprofissao"); + base.Map((ProfissaoDb x) => x.Codigo).Column("codigo"); + base.Map((ProfissaoDb x) => x.Nome).Column("nome"); + base.Map((ProfissaoDb x) => x.Aniversario).Column("dataaniversario"); + } + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/RegistroAcaoMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/RegistroAcaoMap.cs new file mode 100644 index 0000000..f60ce6d --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/RegistroAcaoMap.cs @@ -0,0 +1,31 @@ +using FluentNHibernate.Mapping; +using Gestor.Infrastructure.Entities.Common; +using Gestor.Infrastructure.Entities.Generic; +using Gestor.Infrastructure.Entities.Seguros; +using System; +using System.Linq.Expressions; +using System.Runtime.CompilerServices; + +namespace Gestor.Infrastructure.Mappings.Common +{ + public class RegistroAcaoMap : ClassMap + { + public RegistroAcaoMap() + { + base.Table("RegistroAcao"); + base.LazyLoad(); + base.Id((RegistroAcaoDb x) => (object)x.Id).GeneratedBy.Identity(); + base.References((RegistroAcaoDb x) => x.Usuario).Column("IdUsuario").Fetch.Join(); + base.Map((RegistroAcaoDb x) => (object)x.EntidadeId); + base.Map((RegistroAcaoDb x) => (object)x.Tela).CustomType(); + base.Map((RegistroAcaoDb x) => (object)x.Relatorio).CustomType(); + base.Map((RegistroAcaoDb x) => (object)x.DataHora); + base.Map((RegistroAcaoDb x) => x.Descricao).Length(1000); + base.Map((RegistroAcaoDb x) => x.Observacao).Length(4001); + base.Map((RegistroAcaoDb x) => x.NomeMaquina); + base.Map((RegistroAcaoDb x) => x.UsuarioMaquina); + base.Map((RegistroAcaoDb x) => x.Ip); + base.Map((RegistroAcaoDb x) => x.Versao); + } + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/RegistroLogMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/RegistroLogMap.cs new file mode 100644 index 0000000..3e670da --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/RegistroLogMap.cs @@ -0,0 +1,31 @@ +using FluentNHibernate.Mapping; +using Gestor.Infrastructure.Entities.Common; +using Gestor.Infrastructure.Entities.Generic; +using Gestor.Infrastructure.Entities.Seguros; +using System; +using System.Linq.Expressions; +using System.Runtime.CompilerServices; + +namespace Gestor.Infrastructure.Mappings.Common +{ + public class RegistroLogMap : ClassMap + { + public RegistroLogMap() + { + base.Table("RegistroLog"); + base.LazyLoad(); + base.Id((RegistroLogDb x) => (object)x.Id).GeneratedBy.Identity(); + base.Map((RegistroLogDb x) => (object)x.EntidadeId).Not.Nullable(); + base.Map((RegistroLogDb x) => (object)x.Acao).CustomType(); + base.Map((RegistroLogDb x) => (object)x.Tela).CustomType(); + base.Map((RegistroLogDb x) => x.Versao); + base.Map((RegistroLogDb x) => (object)x.DataHora).Not.Nullable(); + base.Map((RegistroLogDb x) => x.Descricao).CustomType("StringClob").CustomSqlType("varchar(MAX)").Not.Nullable(); + base.References((RegistroLogDb x) => x.Usuario).Column("IdUsuario").Fetch.Join(); + base.Map((RegistroLogDb x) => x.NomeMaquina); + base.Map((RegistroLogDb x) => x.UsuarioMaquina); + base.Map((RegistroLogDb x) => x.Ip); + base.Map((RegistroLogDb x) => (object)x.ModeloNovo).Default("0"); + } + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/SocioMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/SocioMap.cs new file mode 100644 index 0000000..a7276ba --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/SocioMap.cs @@ -0,0 +1,25 @@ +using FluentNHibernate.Mapping; +using Gestor.Infrastructure.Entities.Common; +using Gestor.Infrastructure.Entities.Generic; +using System; +using System.Linq.Expressions; +using System.Runtime.CompilerServices; + +namespace Gestor.Infrastructure.Mappings.Common +{ + public class SocioMap : ClassMap + { + public SocioMap() + { + base.Table("socio"); + base.LazyLoad(); + base.Id((SocioDb x) => (object)x.Id).GeneratedBy.Identity().Column("idsocio"); + base.Map((SocioDb x) => (object)x.IdEmpresa).Column("idempresa").Not.Nullable(); + base.Map((SocioDb x) => (object)x.Excluido).Column("excluido").Not.Nullable().CustomType(); + base.Map((SocioDb x) => x.Nome).Column("nome").Not.Nullable(); + base.Map((SocioDb x) => x.Email).Column("email"); + base.Map((SocioDb x) => x.Prefixo).Column("ddd"); + base.Map((SocioDb x) => x.Telefone).Column("telefone"); + } + } +} \ No newline at end of file -- cgit v1.2.3