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 --- .../AdiantamentoMap.cs | 26 -------- .../AeronauticoMap.cs | 35 ----------- .../AutoMap.cs | 51 ---------------- .../ClienteEmailMap.cs | 23 ------- .../ClienteEnderecoMap.cs | 29 --------- .../ClienteMap.cs | 53 ---------------- .../ClienteTelefoneMap.cs | 25 -------- .../ClienteVinculoMap.cs | 22 ------- .../CoberturaGranizoMap.cs | 27 --------- .../CoberturaMap.cs | 25 -------- .../CoberturaPadraoMap.cs | 22 ------- .../CondicaoRepasseMap.cs | 22 ------- .../ConfigExtratoImportMap.cs | 23 ------- .../ConsorcioMap.cs | 25 -------- .../ControleMap.cs | 27 --------- .../ControleSinistroMap.cs | 21 ------- .../CriticaApoliceMap.cs | 28 --------- .../DetalheExtratoMap.cs | 35 ----------- .../DocumentoMap.cs | 70 ---------------------- .../EstipulanteMap.cs | 38 ------------ .../ExpedicaoMap.cs | 29 --------- .../ExtratoMap.cs | 33 ---------- .../FabricanteMap.cs | 19 ------ .../FaturaMap.cs | 24 -------- .../GranizoMap.cs | 33 ---------- .../ItemMap.cs | 33 ---------- .../MaisContatoMap.cs | 38 ------------ .../MetaSeguradoraMap.cs | 26 -------- .../MetaVendedorMap.cs | 23 ------- .../ParceiroMap.cs | 37 ------------ .../ParcelaMap.cs | 52 ---------------- .../PatrimonialMap.cs | 47 --------------- .../PerfilEmpresaMap.cs | 36 ----------- .../PerfilMap.cs | 45 -------------- .../PermissaoArquivoDigitalMap.cs | 24 -------- .../PermissaoUsuarioMap.cs | 25 -------- .../ProdutoMap.cs | 21 ------- .../ProspeccaoMap.cs | 44 -------------- .../QualificacaoMap.cs | 28 --------- .../RamoMap.cs | 25 -------- .../RepasseMap.cs | 29 --------- .../ResponsavelAssinaturaMap.cs | 23 ------- .../RestricaoUsuarioCamposRelatoriosMap.cs | 23 ------- .../RestricaoUsuarioMap.cs | 22 ------- .../RiscosDiversosMap.cs | 24 -------- .../SeguradoraContatoMap.cs | 28 --------- .../SeguradoraEnderecoMap.cs | 30 ---------- .../SeguradoraMap.cs | 37 ------------ .../SinistroAutoMap.cs | 35 ----------- .../SinistroMap.cs | 42 ------------- .../SinistroVidaMap.cs | 26 -------- .../StatusMap.cs | 21 ------- .../TipoContaMap.cs | 21 ------- .../TipoVendedorMap.cs | 21 ------- .../TitularesVidaMap.cs | 33 ---------- .../UsuarioMap.cs | 69 --------------------- .../VendedorMap.cs | 34 ----------- .../VendedorParcelaMap.cs | 34 ----------- .../VendedorTelefoneMap.cs | 25 -------- .../VendedorUsuarioMap.cs | 21 ------- .../VidaMap.cs | 26 -------- 61 files changed, 1893 deletions(-) delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/AdiantamentoMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/AeronauticoMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/AutoMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ClienteEmailMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ClienteEnderecoMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ClienteMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ClienteTelefoneMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ClienteVinculoMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CoberturaGranizoMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CoberturaMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CoberturaPadraoMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CondicaoRepasseMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ConfigExtratoImportMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ConsorcioMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ControleMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ControleSinistroMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CriticaApoliceMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/DetalheExtratoMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/DocumentoMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/EstipulanteMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ExpedicaoMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ExtratoMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/FabricanteMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/FaturaMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/GranizoMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ItemMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/MaisContatoMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/MetaSeguradoraMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/MetaVendedorMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ParceiroMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ParcelaMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PatrimonialMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PerfilEmpresaMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PerfilMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PermissaoArquivoDigitalMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PermissaoUsuarioMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ProdutoMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ProspeccaoMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/QualificacaoMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/RamoMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/RepasseMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ResponsavelAssinaturaMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/RestricaoUsuarioCamposRelatoriosMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/RestricaoUsuarioMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/RiscosDiversosMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SeguradoraContatoMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SeguradoraEnderecoMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SeguradoraMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SinistroAutoMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SinistroMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SinistroVidaMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/StatusMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/TipoContaMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/TipoVendedorMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/TitularesVidaMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/UsuarioMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/VendedorMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/VendedorParcelaMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/VendedorTelefoneMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/VendedorUsuarioMap.cs delete mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/VidaMap.cs (limited to 'Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros') diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/AdiantamentoMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/AdiantamentoMap.cs deleted file mode 100644 index 2f85316..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/AdiantamentoMap.cs +++ /dev/null @@ -1,26 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class AdiantamentoMap : ClassMap - { - public AdiantamentoMap() - { - base.Table("adiantamento"); - base.LazyLoad(); - base.Id((AdiantamentoDb x) => (object)x.Id).GeneratedBy.Identity().Column("idadiantamento"); - base.References((AdiantamentoDb x) => x.Vendedor).Column("IdVendedor").Not.Nullable().Fetch.Join(); - base.Map((AdiantamentoDb x) => (object)x.TipoPagamento).CustomType().Column("idtipopagto"); - base.Map((AdiantamentoDb x) => x.Historico).Column("historico"); - base.Map((AdiantamentoDb x) => (object)x.Data).Column("data"); - base.Map((AdiantamentoDb x) => (object)x.Valor).Column("valor"); - base.Map((AdiantamentoDb x) => (object)x.Pago).Column("pago").CustomType(); - base.Map((AdiantamentoDb x) => (object)x.Pagamento); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/AeronauticoMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/AeronauticoMap.cs deleted file mode 100644 index 9e1ad15..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/AeronauticoMap.cs +++ /dev/null @@ -1,35 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class AeronauticoMap : ClassMap - { - public AeronauticoMap() - { - base.Table("aeronautico"); - base.LazyLoad(); - base.Id((AeronauticoDb x) => (object)x.Id).GeneratedBy.Identity().Column("idaeronautico"); - base.References((AeronauticoDb x) => x.Item).Column("iditem").Not.Nullable().Fetch.Join(); - base.Map((AeronauticoDb x) => (object)x.Tipo).CustomType().Column("idtipoaeronautico").Not.Nullable(); - base.Map((AeronauticoDb x) => x.Fabricante).Column("fabricante").Not.Nullable(); - base.Map((AeronauticoDb x) => x.Modelo).Column("modelo").Not.Nullable(); - base.Map((AeronauticoDb x) => x.Serie).Column("serieregistro").Not.Nullable(); - base.Map((AeronauticoDb x) => x.Prefixo).Column("nomeprefixo").Not.Nullable(); - base.Map((AeronauticoDb x) => (object)x.Fabricacao).Column("anofab").Not.Nullable(); - base.Map((AeronauticoDb x) => (object)x.Tripulantes).Column("tripulantes").Not.Nullable(); - base.Map((AeronauticoDb x) => (object)x.Passageiros).Column("passageiros").Not.Nullable(); - base.Map((AeronauticoDb x) => x.MarinaAero).Column("marinaaero").Not.Nullable(); - base.Map((AeronauticoDb x) => (object)x.Peso).Column("peso"); - base.Map((AeronauticoDb x) => x.Certificado).Column("certificado"); - base.Map((AeronauticoDb x) => (object)x.Vistoria).Column("vistoria"); - base.Map((AeronauticoDb x) => x.Casco).Column("casco"); - base.Map((AeronauticoDb x) => x.Navegacao).Column("navegacao"); - base.Map((AeronauticoDb x) => x.Observacao).Column("obs").CustomType("StringClob").CustomSqlType("varchar(MAX)"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/AutoMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/AutoMap.cs deleted file mode 100644 index 0f11065..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/AutoMap.cs +++ /dev/null @@ -1,51 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class AutoMap : ClassMap - { - public AutoMap() - { - base.Table("auto"); - base.LazyLoad(); - base.Id((AutoDb x) => (object)x.Id).GeneratedBy.Identity().Column("idauto"); - base.References((AutoDb x) => x.Item).Column("iditem").Not.Nullable().Fetch.Join(); - base.References((AutoDb x) => x.Fabricante).Column("idfabricante").NotFound.Ignore().Cascade.None(); - base.Map((AutoDb x) => (object)x.Combustivel).CustomType().Column("idcombustivel"); - base.Map((AutoDb x) => x.Fipe).Column("codfipe"); - base.Map((AutoDb x) => x.Modelo).Column("modelo"); - base.Map((AutoDb x) => (object)x.Categoria).CustomType>().Column("idcategoria"); - base.Map((AutoDb x) => (object)x.UsoVeiculo).CustomType(); - base.Map((AutoDb x) => x.Chassi).Column("chassi"); - base.Map((AutoDb x) => x.Placa).Column("placa").Not.Nullable(); - base.Map((AutoDb x) => x.AnoFabricacao).Column("anofab"); - base.Map((AutoDb x) => x.AnoModelo).Column("anomod"); - base.Map((AutoDb x) => x.Renavam).Column("renavam"); - base.Map((AutoDb x) => x.Capacidade).Column("capacidade"); - base.Map((AutoDb x) => x.Portas).Column("portas"); - base.Map((AutoDb x) => (object)x.Cor).CustomType().Column("idcor"); - base.Map((AutoDb x) => x.Observacao).Column("obs").CustomType("StringClob").CustomSqlType("varchar(MAX)"); - base.Map((AutoDb x) => x.RegiaoCirculacao).Column("regiaocirculacao"); - base.Map((AutoDb x) => (object)x.TipoCobertura).CustomType>().Column("idtipocobertura"); - base.Map((AutoDb x) => (object)x.TabelaReferencia).CustomType>().Column("idtabelareferencia"); - base.Map((AutoDb x) => (object)x.Bonus).Column("bonus"); - base.Map((AutoDb x) => (object)x.PorcentagemReferencia).Column("porcentagemreferencia"); - base.Map((AutoDb x) => (object)x.ValorDeterminado).Column("valordeterminado"); - base.Map((AutoDb x) => x.Ci).Column("ci"); - base.Map((AutoDb x) => x.CepPernoite).Column("ceppernoite"); - base.Map((AutoDb x) => (object)x.Financiado).Column("financiado").CustomType(); - base.Map((AutoDb x) => (object)x.ZeroKm).Column("zerokm").CustomType(); - base.Map((AutoDb x) => (object)x.Isencao).CustomType>().Column("isencao"); - base.Map((AutoDb x) => (object)x.Pcd).Column("pcd").CustomType(); - base.Map((AutoDb x) => (object)x.Correcao).CustomType>().Column("correcao"); - base.Map((AutoDb x) => (object)x.Rastreador).CustomType>().Default("0"); - base.Map((AutoDb x) => (object)x.Blindagem).CustomType().Column("blindagem"); - base.Map((AutoDb x) => (object)x.KitGas).Column("kitgas"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ClienteEmailMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ClienteEmailMap.cs deleted file mode 100644 index 89188e4..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ClienteEmailMap.cs +++ /dev/null @@ -1,23 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class ClienteEmailMap : ClassMap - { - public ClienteEmailMap() - { - base.Table("climail"); - base.LazyLoad(); - base.Id((ClienteEmailDb x) => (object)x.Id).GeneratedBy.Identity().Column("idclimail"); - base.References((ClienteEmailDb x) => x.Cliente).Column("idcliente").Not.Nullable().Fetch.Join(); - base.Map((ClienteEmailDb x) => x.Email).Column("email").Not.Nullable(); - base.Map((ClienteEmailDb x) => x.Observacao).Column("obs").CustomType("StringClob").CustomSqlType("varchar(MAX)"); - base.Map((ClienteEmailDb x) => (object)x.Ordem).Column("ordem"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ClienteEnderecoMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ClienteEnderecoMap.cs deleted file mode 100644 index 9a39598..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ClienteEnderecoMap.cs +++ /dev/null @@ -1,29 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class ClienteEnderecoMap : ClassMap - { - public ClienteEnderecoMap() - { - base.Table("cliendereco"); - base.LazyLoad(); - base.Id((ClienteEnderecoDb x) => (object)x.Id).GeneratedBy.Identity().Column("idcliend"); - base.References((ClienteEnderecoDb x) => x.Cliente).Column("idcliente").Not.Nullable().Fetch.Join(); - base.Map((ClienteEnderecoDb x) => x.Cep).Column("cep"); - base.Map((ClienteEnderecoDb x) => x.Endereco).Column("endereco"); - base.Map((ClienteEnderecoDb x) => x.Numero).Column("numero"); - base.Map((ClienteEnderecoDb x) => x.Complemento).Column("comp_end"); - base.Map((ClienteEnderecoDb x) => x.Bairro).Column("bairro"); - base.Map((ClienteEnderecoDb x) => x.Cidade).Column("cidade"); - base.Map((ClienteEnderecoDb x) => x.Estado).Column("uf"); - base.Map((ClienteEnderecoDb x) => (object)x.Ordem).Column("ordem"); - base.Map((ClienteEnderecoDb x) => x.Observacao).Column("obs").CustomType("StringClob").CustomSqlType("varchar(MAX)"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ClienteMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ClienteMap.cs deleted file mode 100644 index 9195651..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ClienteMap.cs +++ /dev/null @@ -1,53 +0,0 @@ -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.Seguros -{ - public class ClienteMap : ClassMap - { - public ClienteMap() - { - base.Table("cliente"); - base.LazyLoad(); - base.Id((ClienteDb x) => (object)x.Id).GeneratedBy.Identity().Column("idcliente"); - base.References((ClienteDb x) => x.Atividade).Column("idatividade").Fetch.Join().NotFound.Ignore(); - base.References((ClienteDb x) => x.Profissao).Column("idprofissao").Fetch.Join().NotFound.Ignore(); - base.References((ClienteDb x) => x.Banco).Column("idcodigobanco").Fetch.Join().NotFound.Ignore(); - base.Map((ClienteDb x) => (object)x.IdEmpresa).Column("idempresa").Not.Nullable(); - base.Map((ClienteDb x) => x.Nome).Column("nome").Not.Nullable(); - base.Map((ClienteDb x) => (object)x.Nascimento).Column("dtnasc"); - base.Map((ClienteDb x) => (object)x.Sexo).CustomType>().Column("sexo"); - base.Map((ClienteDb x) => (object)x.EstadoCivil).CustomType>().Column("estadocivi"); - base.Map((ClienteDb x) => x.Documento).Column("cgccpf"); - base.Map((ClienteDb x) => x.Identidade).Column("rg"); - base.Map((ClienteDb x) => x.Emissor).Column("emissor"); - base.Map((ClienteDb x) => x.EstadoEmissor).Column("rguf"); - base.Map((ClienteDb x) => (object)x.Expedicao).Column("rgexpedica"); - base.Map((ClienteDb x) => x.Habilitacao).Column("numehabili"); - base.Map((ClienteDb x) => (object)x.PrimeiraHabilitacao).Column("primehabil"); - base.Map((ClienteDb x) => (object)x.VencimentoHabilitacao).Column("venchabili"); - base.Map((ClienteDb x) => x.CategoriaHabilitacao).Column("cathabili"); - base.Map((ClienteDb x) => x.Cei).Column("cei"); - base.Map((ClienteDb x) => x.Pasta).Column("pasta"); - base.Map((ClienteDb x) => x.Agencia).Column("agencia"); - base.Map((ClienteDb x) => x.TipoConta).Column("tipoconta"); - base.Map((ClienteDb x) => x.Conta).Column("conta"); - base.Map((ClienteDb x) => (object)x.ClienteDesde).Column("clidesde"); - base.Map((ClienteDb x) => x.Observacao).Column("anotacoes").CustomType("StringClob").CustomSqlType("varchar(MAX)"); - base.Map((ClienteDb x) => (object)x.Excluido).Column("excluido").CustomType(); - base.Map((ClienteDb x) => (object)x.DocumentoPrincipal).CustomType().Column("documentoprincipal"); - base.Map((ClienteDb x) => x.Rne).Column("rne"); - base.Map((ClienteDb x) => (object)x.Falecido).Column("Falecido"); - base.Map((ClienteDb x) => (object)x.RendaMensal).Column("RendaMensal"); - base.Map((ClienteDb x) => x.Caepf).Column("caepf"); - base.Map((ClienteDb x) => (object)x.MalaDireta).Default("1"); - base.Map((ClienteDb c) => (object)c.EstaNaCentralSegurado); - base.Map((ClienteDb x) => x.NomeSocialRg).Column("nomesocialRg"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ClienteTelefoneMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ClienteTelefoneMap.cs deleted file mode 100644 index 55ed216..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ClienteTelefoneMap.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class ClienteTelefoneMap : ClassMap - { - public ClienteTelefoneMap() - { - base.Table("clitelefone"); - base.LazyLoad(); - base.Id((ClienteTelefoneDb x) => (object)x.Id).GeneratedBy.Identity().Column("idclitelefone"); - base.References((ClienteTelefoneDb x) => x.Cliente).Column("idcliente").Not.Nullable().Fetch.Join(); - base.Map((ClienteTelefoneDb x) => (object)x.Tipo).CustomType().Column("tipo"); - base.Map((ClienteTelefoneDb x) => x.Prefixo).Column("ddd"); - base.Map((ClienteTelefoneDb x) => x.Numero).Column("fone"); - base.Map((ClienteTelefoneDb x) => x.Observacao).Column("obs").CustomType("StringClob").CustomSqlType("varchar(MAX)"); - base.Map((ClienteTelefoneDb x) => (object)x.Ordem).Column("ordem"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ClienteVinculoMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ClienteVinculoMap.cs deleted file mode 100644 index c57ef85..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ClienteVinculoMap.cs +++ /dev/null @@ -1,22 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class ClienteVinculoMap : ClassMap - { - public ClienteVinculoMap() - { - base.Table("clivinculo"); - base.LazyLoad(); - base.Id((ClienteVinculoDb x) => (object)x.Id).GeneratedBy.Identity().Column("idvinculo"); - base.References((ClienteVinculoDb x) => x.Cliente1).Column("idcliente1").Fetch.Join(); - base.References((ClienteVinculoDb x) => x.Cliente2).Column("idcliente2").Fetch.Join(); - base.Map((ClienteVinculoDb x) => (object)x.Parentesco).CustomType().Column("parentesco"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CoberturaGranizoMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CoberturaGranizoMap.cs deleted file mode 100644 index 68aee56..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CoberturaGranizoMap.cs +++ /dev/null @@ -1,27 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class CoberturaGranizoMap : ClassMap - { - public CoberturaGranizoMap() - { - base.Table("coberturagranizo"); - base.LazyLoad(); - base.Id((CoberturaGranizoDb x) => (object)x.Id).GeneratedBy.Identity().Column("idcoberturagranizo"); - base.References((CoberturaGranizoDb x) => x.Granizo).Column("idgranizo").Not.Nullable().Fetch.Join(); - base.Map((CoberturaGranizoDb x) => x.Variedade).Column("variedade"); - base.Map((CoberturaGranizoDb x) => x.Quadra).Column("quadra"); - base.Map((CoberturaGranizoDb x) => (object)x.Produtividade).Column("produtividade"); - base.Map((CoberturaGranizoDb x) => (object)x.Lmi).Column("lmi"); - base.Map((CoberturaGranizoDb x) => (object)x.Premio).Column("premio"); - base.Map((CoberturaGranizoDb x) => (object)x.Area).Column("area"); - base.Map((CoberturaGranizoDb x) => (object)x.Plantio).Column("dtplantio"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CoberturaMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CoberturaMap.cs deleted file mode 100644 index 4252897..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CoberturaMap.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class CoberturaMap : ClassMap - { - public CoberturaMap() - { - base.Table("cobertura"); - base.LazyLoad(); - base.Id((CoberturaDb x) => (object)x.Id).GeneratedBy.Identity().Column("idcobertura"); - base.References((CoberturaDb x) => x.Item).Column("iditem").Not.Nullable().Fetch.Join(); - base.References((CoberturaDb x) => x.CoberturaPadrao).Column("idcoberturapadrao").NotFound.Ignore().Fetch.Join(); - base.Map((CoberturaDb x) => (object)x.Franquia).Column("franquia"); - base.Map((CoberturaDb x) => (object)x.Premio).Column("premio"); - base.Map((CoberturaDb x) => (object)x.Lmi).Column("lmi"); - base.Map((CoberturaDb x) => x.Observacao).Column("observacao").CustomType("StringClob").CustomSqlType("varchar(MAX)"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CoberturaPadraoMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CoberturaPadraoMap.cs deleted file mode 100644 index 31b0990..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CoberturaPadraoMap.cs +++ /dev/null @@ -1,22 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class CoberturaPadraoMap : ClassMap - { - public CoberturaPadraoMap() - { - base.Table("coberturapadrao"); - base.LazyLoad(); - base.Id((CoberturaPadraoDb x) => (object)x.Id).GeneratedBy.Assigned().Column("idcoberturapadrao"); - base.Map((CoberturaPadraoDb x) => (object)x.IdRamo).Column("idramo"); - base.Map((CoberturaPadraoDb x) => x.Descricao).Column("descricao"); - base.Map((CoberturaPadraoDb x) => (object)x.Padrao).Column("padrao").CustomType(); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CondicaoRepasseMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CondicaoRepasseMap.cs deleted file mode 100644 index 099834d..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CondicaoRepasseMap.cs +++ /dev/null @@ -1,22 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class CondicaoRepasseMap : ClassMap - { - public CondicaoRepasseMap() - { - base.Table("condicao"); - base.LazyLoad(); - base.Id((CondicaoRepasseDb x) => (object)x.Id).GeneratedBy.Identity().Column("idcondicao"); - base.References((CondicaoRepasseDb x) => x.Ramo).Column("idramo").Fetch.Join(); - base.References((CondicaoRepasseDb x) => x.Seguradora).Column("idciaseg").Fetch.Join(); - base.Map((CondicaoRepasseDb x) => (object)x.Parcela).Column("parcela"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ConfigExtratoImportMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ConfigExtratoImportMap.cs deleted file mode 100644 index 1b8b11a..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ConfigExtratoImportMap.cs +++ /dev/null @@ -1,23 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class ConfigExtratoImportMap : ClassMap - { - public ConfigExtratoImportMap() - { - base.Table("extratoconfig"); - base.LazyLoad(); - base.Id((ConfigExtratoImportDb x) => (object)x.Id).GeneratedBy.Identity().Column("idextratoconfig"); - base.Map((ConfigExtratoImportDb x) => (object)x.IdSeguradora).Column("idciaseg"); - base.Map((ConfigExtratoImportDb x) => x.Descricao).Column("descricao"); - base.Map((ConfigExtratoImportDb x) => x.Codigo).Column("codigocia"); - base.Map((ConfigExtratoImportDb x) => (object)x.Ativo).Column("ativo"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ConsorcioMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ConsorcioMap.cs deleted file mode 100644 index a443f1d..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ConsorcioMap.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class ConsorcioMap : ClassMap - { - public ConsorcioMap() - { - base.Table("consorcio"); - base.LazyLoad(); - base.Id((ConsorcioDb x) => (object)x.Id).GeneratedBy.Identity().Column("idconsorcio"); - base.References((ConsorcioDb x) => x.Item).Column("iditem").Not.Nullable().Fetch.Join(); - base.Map((ConsorcioDb x) => x.BensConsorcio).Column("bensconsorcio"); - base.Map((ConsorcioDb x) => (object)x.ValorCredito).Column("valorcredito"); - base.Map((ConsorcioDb x) => x.Grupo).Column("grupo"); - base.Map((ConsorcioDb x) => x.Cota).Column("cota"); - base.Map((ConsorcioDb x) => x.Observacao).Column("obs").CustomType("StringClob").CustomSqlType("varchar(MAX)"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ControleMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ControleMap.cs deleted file mode 100644 index a1de969..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ControleMap.cs +++ /dev/null @@ -1,27 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class ControleMap : ClassMap - { - public ControleMap() - { - base.Table("controle"); - base.LazyLoad(); - base.Id((ControleDb x) => (object)x.Id).GeneratedBy.Identity().Column("idcontrole"); - base.References((ControleDb x) => x.Cliente).Column("idcliente").Not.Nullable().Fetch.Join(); - base.References((ControleDb x) => x.Seguradora).Column("idciaseg").Fetch.Join(); - base.References((ControleDb x) => x.Ramo).Column("idramo").Fetch.Join(); - base.References((ControleDb x) => x.Produto).Column("idproduto").Fetch.Join(); - base.References((ControleDb x) => x.SeguradoraAnterior).Column("idciasegant").NotFound.Ignore().Fetch.Join(); - base.Map((ControleDb x) => (object)x.IdEmpresa).Column("idempresa").Not.Nullable(); - base.Map((ControleDb x) => x.AssistenciaId); - base.HasMany((ControleDb x) => x.Documentos).Fetch.Join(); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ControleSinistroMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ControleSinistroMap.cs deleted file mode 100644 index f404be8..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ControleSinistroMap.cs +++ /dev/null @@ -1,21 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class ControleSinistroMap : ClassMap - { - public ControleSinistroMap() - { - base.Table("controlesinistro"); - base.LazyLoad(); - base.Id((ControleSinistroDb x) => (object)x.Id).GeneratedBy.Identity().Column("idcontrolesinistro"); - base.References((ControleSinistroDb x) => x.Item).Column("iditem").Not.Nullable().Fetch.Join(); - base.Map((ControleSinistroDb x) => (object)x.DataSinistro).Column("datasinistro"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CriticaApoliceMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CriticaApoliceMap.cs deleted file mode 100644 index 1f6b6ae..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CriticaApoliceMap.cs +++ /dev/null @@ -1,28 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class CriticaApoliceMap : ClassMap - { - public CriticaApoliceMap() - { - base.Table("importacao"); - base.LazyLoad(); - base.Id((CriticaApoliceDb x) => (object)x.Id).GeneratedBy.Identity().Column("idimportacao"); - base.References((CriticaApoliceDb x) => x.Documento).Column("iddocumento").Not.Nullable().Fetch.Join(); - base.References((CriticaApoliceDb x) => x.UsuarioImportacao).Column("idusuario").Not.Nullable().Fetch.Join(); - base.Map((CriticaApoliceDb x) => (object)x.Critica).Column("critica").CustomType(); - base.Map((CriticaApoliceDb x) => (object)x.UsuarioCritica).Column("idusuariocritica"); - base.Map((CriticaApoliceDb x) => x.NaoEncontrados).Column("naoencontrados"); - base.Map((CriticaApoliceDb x) => (object)x.DataImportacao).Column("dataimportacao"); - base.Map((CriticaApoliceDb x) => (object)x.DataCritica).Column("datacritica"); - base.Map((CriticaApoliceDb x) => x.Tipo).Column("tipo"); - base.Map((CriticaApoliceDb x) => (object)x.Aggilizador).Column("Aggilizador"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/DetalheExtratoMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/DetalheExtratoMap.cs deleted file mode 100644 index 021416c..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/DetalheExtratoMap.cs +++ /dev/null @@ -1,35 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class DetalheExtratoMap : ClassMap - { - public DetalheExtratoMap() - { - base.Table("parcelaextrato"); - base.LazyLoad(); - base.Id((DetalheExtratoDb x) => (object)x.Id).GeneratedBy.Identity().Column("idparcelaextrato"); - base.References((DetalheExtratoDb x) => x.Extrato).Column("idextrato").Fetch.Join(); - base.Map((DetalheExtratoDb x) => (object)x.Status).CustomType().Column("idstatusparcela"); - base.Map((DetalheExtratoDb x) => (object)x.SubTipo).CustomType().Column("idsubtipo"); - base.Map((DetalheExtratoDb x) => (object)x.Parcela).Column("idparcela"); - base.Map((DetalheExtratoDb x) => x.Cliente).Column("cliente"); - base.Map((DetalheExtratoDb x) => x.Apolice).Column("apolice"); - base.Map((DetalheExtratoDb x) => x.Endosso).Column("endosso"); - base.Map((DetalheExtratoDb x) => x.NumeroParcela).Column("parcela"); - base.Map((DetalheExtratoDb x) => (object)x.Recebimento).Column("datarec"); - base.Map((DetalheExtratoDb x) => (object)x.Credito).Column("datacred"); - base.Map((DetalheExtratoDb x) => (object)x.Valor).Column("valor"); - base.Map((DetalheExtratoDb x) => (object)x.Comissao).Column("comiss"); - base.Map((DetalheExtratoDb x) => (object)x.ValorComissao).Column("vlrcomiss"); - base.Map((DetalheExtratoDb x) => x.Historico).Column("historico"); - base.Map((DetalheExtratoDb x) => (object)x.Documento).Column("iddocumento"); - base.Map((DetalheExtratoDb x) => (object)x.Corrigir).Column("corrigir"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/DocumentoMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/DocumentoMap.cs deleted file mode 100644 index bbb4721..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/DocumentoMap.cs +++ /dev/null @@ -1,70 +0,0 @@ -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.Seguros -{ - public class DocumentoMap : ClassMap - { - public DocumentoMap() - { - base.Table("documento"); - base.LazyLoad(); - base.Id((DocumentoDb x) => (object)x.Id).GeneratedBy.Identity().Column("iddocumento"); - base.References((DocumentoDb x) => x.Controle).Column("idcontrole").Not.Nullable().Fetch.Join(); - base.References((DocumentoDb x) => x.UsuarioCriacao).Column("usuariocriacao"); - base.References((DocumentoDb x) => x.Status).Column("idstatus").Fetch.Join(); - base.Map((DocumentoDb x) => (object)x.DataCriacao).Column("cri_data"); - base.Map((DocumentoDb x) => (object)x.Ordem).Column("ordem").Not.Nullable(); - base.Map((DocumentoDb x) => (object)x.Tipo).Column("tipo").Not.Nullable(); - base.Map((DocumentoDb x) => x.Proposta).Column("proposta"); - base.Map((DocumentoDb x) => x.PropostaEndosso).Column("pedadit"); - base.Map((DocumentoDb x) => x.ApoliceAnterior).Column("apol_antes"); - base.Map((DocumentoDb x) => x.Apolice).Column("contrato"); - base.Map((DocumentoDb x) => x.Endosso).Column("aditamento"); - base.Map((DocumentoDb x) => (object)x.DataControle).Column("datacontrole"); - base.Map((DocumentoDb x) => (object)x.Excluido).Column("excluido").Not.Nullable().CustomType(); - base.Map((DocumentoDb x) => (object)x.PropostaAssinada).Column("propassinada").CustomType(); - base.Map((DocumentoDb x) => (object)x.ApoliceConferida).Column("apoconferida").CustomType(); - base.Map((DocumentoDb x) => (object)x.AdicionalComiss).Column("adinacomis").CustomType(); - base.Map((DocumentoDb x) => (object)x.Comissao).Column("com01"); - base.Map((DocumentoDb x) => (object)x.PremioLiquido).Column("pr_liq"); - base.Map((DocumentoDb x) => (object)x.PremioAdicional).Column("pr_adic"); - base.Map((DocumentoDb x) => (object)x.PremioTotal).Column("pr_total"); - base.Map((DocumentoDb x) => (object)x.NumeroParcelas).Column("n_parc"); - base.Map((DocumentoDb x) => (object)x.Custo).Column("pr_custo"); - base.Map((DocumentoDb x) => (object)x.Iof).Column("pr_iof"); - base.Map((DocumentoDb x) => (object)x.Diferenca).Column("diferenca"); - base.Map((DocumentoDb x) => (object)x.Negocio).CustomType().Column("idnegocio"); - base.Map((DocumentoDb x) => x.Observacao).Column("obs").CustomType("StringClob").CustomSqlType("varchar(MAX)"); - base.Map((DocumentoDb x) => x.Pasta).Column("pasta"); - base.Map((DocumentoDb x) => x.Agencia).Column("agencia"); - base.Map((DocumentoDb x) => x.Conta).Column("conta"); - base.Map((DocumentoDb x) => (object)x.TipoEndosso).CustomType>().Column("tipoadit"); - base.Map((DocumentoDb x) => (object)x.TipoRecebimento).CustomType().Column("tiporecebimento"); - base.Map((DocumentoDb x) => (object)x.Situacao).CustomType().Column("situacao").Not.Nullable(); - base.Map((DocumentoDb x) => (object)x.SituacaoAnterior).CustomType>().Column("situant"); - base.Map((DocumentoDb x) => x.NumeroCartao).Column("numerocart"); - base.Map((DocumentoDb x) => x.VencimentoCartao).Column("vencimentocart"); - base.Map((DocumentoDb x) => x.NomeProponente).Column("nomeprop"); - base.Map((DocumentoDb x) => (object)x.Vigencia1).Column("vigencia1").Not.Nullable(); - base.Map((DocumentoDb x) => (object)x.Vigencia2).Column("vigencia2"); - base.Map((DocumentoDb x) => (object)x.Emissao).Column("emissao"); - base.Map((DocumentoDb x) => (object)x.Remessa).Column("remessa"); - base.Map((DocumentoDb x) => (object)x.ComissaoTotal).Column("comissaototal"); - base.Map((DocumentoDb x) => (object)x.NegocioCorretora).CustomType().Column("NegocioCorretora"); - base.Map((DocumentoDb x) => (object)x.Bandeira).CustomType().Column("idbandeira"); - base.References((DocumentoDb x) => x.Banco).Column("idbanco").Cascade.None(); - base.References((DocumentoDb x) => x.Estipulante1).Column("idestipulante").Fetch.Join(); - base.References((DocumentoDb x) => x.Estipulante2).Column("idestipulante2").Fetch.Join(); - base.References((DocumentoDb x) => x.Estipulante3).Column("idestipulante3").Fetch.Join(); - base.References((DocumentoDb x) => x.Estipulante4).Column("idestipulante4").Fetch.Join(); - base.References((DocumentoDb x) => x.Estipulante5).Column("idestipulante5").Fetch.Join(); - base.Map((DocumentoDb x) => (object)x.FormaPagamento).CustomType>().Column("formapagamento"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/EstipulanteMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/EstipulanteMap.cs deleted file mode 100644 index 39c6fd7..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/EstipulanteMap.cs +++ /dev/null @@ -1,38 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class EstipulanteMap : ClassMap - { - public EstipulanteMap() - { - base.Table("estipulante"); - base.LazyLoad(); - base.Id((EstipulanteDb x) => (object)x.Id).GeneratedBy.Identity().Column("idestipulante"); - base.Map((EstipulanteDb x) => (object)x.IdEmpresa).Column("idempresa"); - base.Map((EstipulanteDb x) => x.Nome).Column("nome"); - base.Map((EstipulanteDb x) => x.Documento).Column("cpfcnpj"); - base.Map((EstipulanteDb x) => x.Cep).Column("cep"); - base.Map((EstipulanteDb x) => x.Cidade).Column("cidade"); - base.Map((EstipulanteDb x) => x.Estado).Column("uf"); - base.Map((EstipulanteDb x) => x.Bairro).Column("bairro"); - base.Map((EstipulanteDb x) => x.Endereco).Column("endereco"); - base.Map((EstipulanteDb x) => x.Numero).Column("numero"); - base.Map((EstipulanteDb x) => x.Complemento).Column("complemento"); - base.Map((EstipulanteDb x) => (object)x.PrimeiroTipo).CustomType().Column("idfonetipo1"); - base.Map((EstipulanteDb x) => x.PrimeiroPrefixo).Column("ddd1"); - base.Map((EstipulanteDb x) => x.PrimeiroTelefone).Column("fone1"); - base.Map((EstipulanteDb x) => (object)x.SegundoTipo).CustomType().Column("idfonetipo2"); - base.Map((EstipulanteDb x) => x.SegundoPrefixo).Column("ddd2"); - base.Map((EstipulanteDb x) => x.SegundoTelefone).Column("fone2"); - base.Map((EstipulanteDb x) => x.Email).Column("email"); - base.Map((EstipulanteDb x) => x.Observacao).Column("obs").CustomType("StringClob").CustomSqlType("varchar(MAX)"); - base.Map((EstipulanteDb x) => (object)x.Ativo).Column("ativo").CustomType(); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ExpedicaoMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ExpedicaoMap.cs deleted file mode 100644 index 93ede61..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ExpedicaoMap.cs +++ /dev/null @@ -1,29 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class ExpedicaoMap : ClassMap - { - public ExpedicaoMap() - { - base.Table("infoexpedicao"); - base.LazyLoad(); - base.Id((ExpedicaoDb x) => (object)x.Id).GeneratedBy.Identity().Column("idinfoexpedicao"); - base.References((ExpedicaoDb x) => x.Apolice).Column("iddocumento").Not.Nullable().Fetch.Join(); - base.Map((ExpedicaoDb x) => x.Documento).Column("documento"); - base.Map((ExpedicaoDb x) => x.Destino).Column("destino"); - base.Map((ExpedicaoDb x) => (object)x.DataEnvio).Column("dtenvio"); - base.Map((ExpedicaoDb x) => (object)x.DataRecebimento).Column("dtrecto"); - base.Map((ExpedicaoDb x) => x.Responsavel).Column("responsavel"); - base.Map((ExpedicaoDb x) => (object)x.UsuarioCriacao).Column("usuariocriacao"); - base.Map((ExpedicaoDb x) => (object)x.DataCriacao).Column("datacriacao"); - base.Map((ExpedicaoDb x) => (object)x.UsuarioAlteracao).Column("usuarioalteracao"); - base.Map((ExpedicaoDb x) => (object)x.DataAlteracao).Column("dataalteracao"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ExtratoMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ExtratoMap.cs deleted file mode 100644 index d4c997a..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ExtratoMap.cs +++ /dev/null @@ -1,33 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class ExtratoMap : ClassMap - { - public ExtratoMap() - { - base.Table("extrato"); - base.LazyLoad(); - base.Id((ExtratoDb x) => (object)x.Id).GeneratedBy.Identity().Column("idextrato"); - base.References((ExtratoDb x) => x.Seguradora).Column("idciaseg").Fetch.Join(); - base.Map((ExtratoDb x) => (object)x.Status).CustomType().Column("idstatusextrato"); - base.Map((ExtratoDb x) => x.Numero).Column("extrato"); - base.Map((ExtratoDb x) => x.Historico).Column("historico"); - base.Map((ExtratoDb x) => (object)x.Data).Column("data"); - base.Map((ExtratoDb x) => (object)x.DataCredito).Column("DataCredito"); - base.Map((ExtratoDb x) => (object)x.Bruto).Column("bruto"); - base.Map((ExtratoDb x) => (object)x.Liquido).Column("liquido"); - base.Map((ExtratoDb x) => (object)x.Ir).Column("ir"); - base.Map((ExtratoDb x) => (object)x.Iss).Column("iss"); - base.Map((ExtratoDb x) => (object)x.Outro).Column("outro"); - base.Map((ExtratoDb x) => x.Observacao).Column("obsextrato").CustomType("StringClob").CustomSqlType("varchar(MAX)"); - base.Map((ExtratoDb x) => (object)x.IdUsuario).Column("usuariocriacao"); - base.Map((ExtratoDb x) => (object)x.IdEmpresa).Column("idempresa"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/FabricanteMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/FabricanteMap.cs deleted file mode 100644 index 95b8783..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/FabricanteMap.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class FabricanteMap : ClassMap - { - public FabricanteMap() - { - base.Table("fabricante"); - base.LazyLoad(); - base.Id((FabricanteDb x) => (object)x.Id).GeneratedBy.Assigned().Column("idfabricante"); - base.Map((FabricanteDb x) => x.Descricao).Column("descricao"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/FaturaMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/FaturaMap.cs deleted file mode 100644 index c1e4bb0..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/FaturaMap.cs +++ /dev/null @@ -1,24 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class FaturaMap : ClassMap - { - public FaturaMap() - { - base.Table("fatura"); - base.LazyLoad(); - base.Id((FaturaDb x) => (object)x.Id).GeneratedBy.Identity().Column("idfatura"); - base.References((FaturaDb x) => x.Parcela).Column("idparcela").Not.Nullable().Fetch.Join(); - base.Map((FaturaDb x) => x.Fatura).Column("numfatura"); - base.Map((FaturaDb x) => (object)x.VigenciaInicial).Column("vigenciai"); - base.Map((FaturaDb x) => (object)x.VigenciaFinal).Column("vigenciaf"); - base.Map((FaturaDb x) => (object)x.Emissao).Column("emissao"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/GranizoMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/GranizoMap.cs deleted file mode 100644 index 202ea46..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/GranizoMap.cs +++ /dev/null @@ -1,33 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class GranizoMap : ClassMap - { - public GranizoMap() - { - base.Table("granizo"); - base.LazyLoad(); - base.Id((GranizoDb x) => (object)x.Id).GeneratedBy.Identity().Column("idgranizo"); - base.References((GranizoDb x) => x.Item).Column("iditem").Not.Nullable().Fetch.Join(); - base.Map((GranizoDb x) => x.Cep).Column("cep"); - base.Map((GranizoDb x) => x.Endereco).Column("endereco"); - base.Map((GranizoDb x) => x.Numero).Column("numero"); - base.Map((GranizoDb x) => x.Complemento).Column("complemento"); - base.Map((GranizoDb x) => x.Bairro).Column("bairro"); - base.Map((GranizoDb x) => x.Cidade).Column("cidade"); - base.Map((GranizoDb x) => x.Estado).Column("uf"); - base.Map((GranizoDb x) => (object)x.SubsidioEstadual).Column("subest"); - base.Map((GranizoDb x) => (object)x.SubsidioFederal).Column("subfed"); - base.Map((GranizoDb x) => x.Cultura).Column("cultura"); - base.Map((GranizoDb x) => x.Sitio).Column("sitio"); - base.Map((GranizoDb x) => x.Observacao).Column("obs").CustomType("StringClob").CustomSqlType("varchar(MAX)"); - base.Map((GranizoDb x) => x.Area).Column("area"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ItemMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ItemMap.cs deleted file mode 100644 index 659373e..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ItemMap.cs +++ /dev/null @@ -1,33 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class ItemMap : ClassMap - { - public ItemMap() - { - base.Table("item"); - base.LazyLoad(); - base.Id((ItemDb x) => (object)x.Id).GeneratedBy.Identity().Column("iditem"); - base.References((ItemDb x) => x.Documento).Column("iddocumento").Not.Nullable().Fetch.Join(); - base.Map((ItemDb x) => (object)x.Endosso).Column("idendosso"); - base.Map((ItemDb x) => (object)x.Substituicao).Column("idsubstituicao"); - base.Map((ItemDb x) => (object)x.Substituido).Column("idsubstituido"); - base.Map((ItemDb x) => (object)x.Ordem).Column("ordem"); - base.Map((ItemDb x) => x.Descricao).Column("descricao"); - base.Map((ItemDb x) => x.Status).Column("status"); - base.Map((ItemDb x) => x.StatusInclusao).Column("statusinc"); - base.Map((ItemDb x) => x.Observacao).Column("obs").CustomType("StringClob").CustomSqlType("varchar(MAX)"); - base.Map((ItemDb x) => (object)x.IdDocumentoCancelado); - base.Map((ItemDb x) => (object)x.Cancelado).Column("cancelado").CustomType(); - base.Map((ItemDb x) => (object)x.Sinistrado).Column("sinistrado").CustomType(); - base.HasMany((ItemDb x) => x.Sinistros).Not.KeyUpdate(); - base.HasMany((ItemDb x) => x.Coberturas).Not.KeyUpdate(); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/MaisContatoMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/MaisContatoMap.cs deleted file mode 100644 index 70f39db..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/MaisContatoMap.cs +++ /dev/null @@ -1,38 +0,0 @@ -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.Seguros -{ - public class MaisContatoMap : ClassMap - { - public MaisContatoMap() - { - base.Table("clicontato"); - base.LazyLoad(); - base.Id((MaisContatoDb x) => (object)x.Id).GeneratedBy.Identity().Column("idclicontato"); - base.References((MaisContatoDb x) => x.Cliente).Column("idcliente").Not.Nullable().Fetch.Join(); - base.References((MaisContatoDb x) => x.Profissao).Column("idprofissao").Fetch.Join(); - base.Map((MaisContatoDb x) => x.Nome).Column("contato"); - base.Map((MaisContatoDb x) => (object)x.Tipo).CustomType().Column("tipo"); - base.Map((MaisContatoDb x) => (object)x.Nascimento).Column("dtnasc"); - base.Map((MaisContatoDb x) => x.Documento).Column("cgccpf"); - base.Map((MaisContatoDb x) => x.Identidade).Column("rg"); - base.Map((MaisContatoDb x) => (object)x.Expedicao).Column("rgexpedicao"); - base.Map((MaisContatoDb x) => (object)x.Parentesco).CustomType().Column("idparentesco"); - base.Map((MaisContatoDb x) => x.Prefixo).Column("ddd"); - base.Map((MaisContatoDb x) => x.Telefone).Column("fone"); - base.Map((MaisContatoDb x) => x.Email).Column("email"); - base.Map((MaisContatoDb x) => x.Habilitacao).Column("cnh"); - base.Map((MaisContatoDb x) => (object)x.PrimeiraHabilitacao).Column("prihabilitacao"); - base.Map((MaisContatoDb x) => x.Banco).Column("banco"); - base.Map((MaisContatoDb x) => x.Agencia).Column("agencia"); - base.Map((MaisContatoDb x) => x.Conta).Column("conta"); - base.Map((MaisContatoDb x) => (object)x.Excluido).Column("excluido").CustomType(); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/MetaSeguradoraMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/MetaSeguradoraMap.cs deleted file mode 100644 index 0a43855..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/MetaSeguradoraMap.cs +++ /dev/null @@ -1,26 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class MetaSeguradoraMap : ClassMap - { - public MetaSeguradoraMap() - { - base.Table("Meta"); - base.LazyLoad(); - base.Id((MetaSeguradoraDb x) => (object)x.Id).GeneratedBy.Identity().Column("IdMeta"); - base.References((MetaSeguradoraDb x) => x.Seguradora).Column("IdCiaSeg").Fetch.Join().NotFound.Ignore(); - base.Map((MetaSeguradoraDb x) => (object)x.Mes).CustomType().Column("Mes"); - base.Map((MetaSeguradoraDb x) => (object)x.Ano).Column("Ano"); - base.Map((MetaSeguradoraDb x) => (object)x.Valor).Column("Valor"); - base.Map((MetaSeguradoraDb x) => (object)x.IdAggilizador).Column("IdSeguradora"); - base.Map((MetaSeguradoraDb x) => (object)x.Recorrente).Column("Recorrente").Not.Nullable().Default("1"); - base.Map((MetaSeguradoraDb x) => (object)x.TipoCalculo).Column("TipoCalculo").Not.Nullable().Default("1"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/MetaVendedorMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/MetaVendedorMap.cs deleted file mode 100644 index 9bf42bf..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/MetaVendedorMap.cs +++ /dev/null @@ -1,23 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class MetaVendedorMap : ClassMap - { - public MetaVendedorMap() - { - base.Table("MetaVendedor"); - base.LazyLoad(); - base.Id((MetaVendedorDb x) => (object)x.Id).GeneratedBy.Identity().Column("IdMetaVendedor"); - base.References((MetaVendedorDb x) => x.Vendedor).Column("IdVendedor").Not.Nullable().Fetch.Join(); - base.Map((MetaVendedorDb x) => (object)x.Mes).CustomType().Column("Mes"); - base.Map((MetaVendedorDb x) => (object)x.Ano).Column("Ano"); - base.Map((MetaVendedorDb x) => (object)x.Valor).Column("Valor"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ParceiroMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ParceiroMap.cs deleted file mode 100644 index b7fafc7..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ParceiroMap.cs +++ /dev/null @@ -1,37 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class ParceiroMap : ClassMap - { - public ParceiroMap() - { - base.Table("parceiro"); - base.LazyLoad(); - base.Id((ParceiroDb x) => (object)x.Id).GeneratedBy.Identity().Column("idparceiro"); - base.Map((ParceiroDb x) => x.Nome).Column("nome"); - base.Map((ParceiroDb x) => x.Cep).Column("cep"); - base.Map((ParceiroDb x) => x.Endereco).Column("endereco"); - base.Map((ParceiroDb x) => x.Numero).Column("numero"); - base.Map((ParceiroDb x) => x.Complemento).Column("complemento"); - base.Map((ParceiroDb x) => x.Bairro).Column("bairro"); - base.Map((ParceiroDb x) => x.Cidade).Column("cidade"); - base.Map((ParceiroDb x) => x.Uf).Column("uf"); - base.Map((ParceiroDb x) => x.Cgccpf).Column("cgccpf"); - base.Map((ParceiroDb x) => x.Contato).Column("contato"); - base.Map((ParceiroDb x) => x.Email).Column("email"); - base.Map((ParceiroDb x) => x.Ddd1).Column("ddd1"); - base.Map((ParceiroDb x) => x.Telefone1).Column("telefone1"); - base.Map((ParceiroDb x) => x.Ddd2).Column("ddd2"); - base.Map((ParceiroDb x) => x.Telefone2).Column("telefone2"); - base.Map((ParceiroDb x) => x.Ddd3).Column("ddd3"); - base.Map((ParceiroDb x) => x.Telefone3).Column("telefone3"); - base.Map((ParceiroDb x) => x.Obs).Column("Obs"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ParcelaMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ParcelaMap.cs deleted file mode 100644 index 52034d4..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ParcelaMap.cs +++ /dev/null @@ -1,52 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class ParcelaMap : ClassMap - { - public ParcelaMap() - { - base.Table("parcela"); - base.LazyLoad(); - base.Id((ParcelaDb x) => (object)x.Id).GeneratedBy.Identity().Column("idparcela"); - base.References((ParcelaDb x) => x.Documento).Column("iddocumento").Not.Nullable().Fetch.Join(); - base.Map((ParcelaDb x) => (object)x.IdEmpresa).Column("idempresa").Not.Nullable(); - base.Map((ParcelaDb x) => (object)x.NumeroParcela).Column("parcela").Not.Nullable(); - base.Map((ParcelaDb x) => (object)x.Vencimento).Column("vencto"); - base.Map((ParcelaDb x) => (object)x.DataRecebimento).Column("datarec"); - base.Map((ParcelaDb x) => (object)x.DataQuitacao).Column("dataquit"); - base.Map((ParcelaDb x) => (object)x.DataCredito).Column("datacred"); - base.Map((ParcelaDb x) => (object)x.Valor).Column("valor").Not.Nullable(); - base.Map((ParcelaDb x) => (object)x.ValorPago).Column("valorp"); - base.Map((ParcelaDb x) => (object)x.ValorRealizado).Column("valorr"); - base.Map((ParcelaDb x) => (object)x.Comissao).Column("comiss"); - base.Map((ParcelaDb x) => (object)x.ValorComissao).Column("vlrcomiss"); - base.Map((ParcelaDb x) => x.Observacao).Column("obs").CustomType("StringClob").CustomSqlType("varchar(MAX)"); - base.Map((ParcelaDb x) => x.Extrato).Column("extrato"); - base.Map((ParcelaDb x) => (object)x.Irr).Column("irr"); - base.Map((ParcelaDb x) => (object)x.Iss).Column("iss"); - base.Map((ParcelaDb x) => (object)x.Outros).Column("outros"); - base.Map((ParcelaDb x) => (object)x.Desconto).Column("desconto"); - base.Map((ParcelaDb x) => (object)x.ValorExtrato).Column("vlrextrato"); - base.Map((ParcelaDb x) => (object)x.ValorComDesconto).Column("vlrcomdesc"); - base.Map((ParcelaDb x) => (object)x.SubTipo).Column("idsubtipo").CustomType(); - base.Map((ParcelaDb x) => (object)x.TipoPagamento).Column("idtipopagto").CustomType(); - base.Map((ParcelaDb x) => (object)x.ValorLiquidoFatura).Column("valorlf"); - base.Map((ParcelaDb x) => (object)x.DataCriacao).Column("cri_data"); - base.Map((ParcelaDb x) => (object)x.UsuarioCriacao).Column("usuariocriacao"); - base.Map((ParcelaDb x) => (object)x.DataControle).Column("datacontrole"); - base.Map((ParcelaDb x) => x.Fatura).Column("fatura"); - base.Map((ParcelaDb x) => (object)x.VigenciaIncial).Column("vigenciainicial"); - base.Map((ParcelaDb x) => (object)x.VigenciaFinal).Column("vigenciafinal"); - base.Map((ParcelaDb x) => (object)x.Emissao).Column("emissao"); - base.Map((ParcelaDb x) => (object)x.StatusPagamento).CustomType().Default("0"); - base.Map((ParcelaDb x) => (object)x.IdParcelaPendente).Default("0"); - base.HasOne((ParcelaDb x) => x.FaturaInfo).Cascade.All().PropertyRef("Parcela"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PatrimonialMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PatrimonialMap.cs deleted file mode 100644 index 62ed300..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PatrimonialMap.cs +++ /dev/null @@ -1,47 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class PatrimonialMap : ClassMap - { - public PatrimonialMap() - { - base.Table("resempco"); - base.LazyLoad(); - base.Id((PatrimonialDb x) => (object)x.Id).GeneratedBy.Identity().Column("idresempco"); - base.References((PatrimonialDb x) => x.Item).Column("iditem").Not.Nullable().Fetch.Join(); - base.Map((PatrimonialDb x) => x.Cep).Column("cep"); - base.Map((PatrimonialDb x) => x.Endereco).Column("endereco"); - base.Map((PatrimonialDb x) => x.Numero).Column("numero"); - base.Map((PatrimonialDb x) => x.Complemento).Column("complemento"); - base.Map((PatrimonialDb x) => x.Bairro).Column("bairro"); - base.Map((PatrimonialDb x) => x.Cidade).Column("cidade"); - base.Map((PatrimonialDb x) => x.Estado).Column("uf"); - base.Map((PatrimonialDb x) => x.Bens).Column("bens").CustomType("StringClob").CustomSqlType("varchar(MAX)"); - base.Map((PatrimonialDb x) => (object)x.Utilizacao).CustomType().Column("idutilizacao"); - base.Map((PatrimonialDb x) => x.Imobiliaria).Column("imobiliaria"); - base.Map((PatrimonialDb x) => x.Contato).Column("contato"); - base.Map((PatrimonialDb x) => (object)x.Tipo).CustomType().Column("idfonetipo"); - base.Map((PatrimonialDb x) => x.Prefixo).Column("ddd"); - base.Map((PatrimonialDb x) => x.Telefone).Column("fone"); - base.Map((PatrimonialDb x) => x.Locatario1).Column("locatario"); - base.Map((PatrimonialDb x) => x.CpfLocatario1).Column("cpfLocatario1"); - base.Map((PatrimonialDb x) => x.PrefixoLocatario1).Column("ddd2"); - base.Map((PatrimonialDb x) => x.TelefoneLocatario1).Column("fone2"); - base.Map((PatrimonialDb x) => x.Locatario2).Column("locatario2"); - base.Map((PatrimonialDb x) => x.CpfLocatario2).Column("cpfLocatario2"); - base.Map((PatrimonialDb x) => x.PrefixoLocatario2).Column("dddLocatario2"); - base.Map((PatrimonialDb x) => x.TelefoneLocatario2).Column("foneLocatario2"); - base.Map((PatrimonialDb x) => x.Locatario3).Column("locatario3"); - base.Map((PatrimonialDb x) => x.CpfLocatario3).Column("cpfLocatario3"); - base.Map((PatrimonialDb x) => x.PrefixoLocatario3).Column("dddLocatario3"); - base.Map((PatrimonialDb x) => x.TelefoneLocatario3).Column("foneLocatario3"); - base.Map((PatrimonialDb x) => (object)x.TipoMoradia).Column("tipoMoradia"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PerfilEmpresaMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PerfilEmpresaMap.cs deleted file mode 100644 index 9227d81..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PerfilEmpresaMap.cs +++ /dev/null @@ -1,36 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class PerfilEmpresaMap : ClassMap - { - public PerfilEmpresaMap() - { - base.Table("perfilempresa"); - base.LazyLoad(); - base.Id((PerfilEmpresaDb x) => (object)x.Id).GeneratedBy.Identity().Column("idperfilempresa"); - base.References((PerfilEmpresaDb x) => x.Cliente).Column("idcliente").Not.Nullable().Fetch.Join(); - base.References((PerfilEmpresaDb x) => x.Controle).Column("idcontrole").Not.Nullable().Fetch.Join(); - base.Map((PerfilEmpresaDb x) => (object)x.TipoPavimento).CustomType>().Column("tipopavimento"); - base.Map((PerfilEmpresaDb x) => (object)x.AnoConstrucao).Column("anoconstrucao"); - base.Map((PerfilEmpresaDb x) => (object)x.TipoConstrucao).CustomType>().Column("TipoConstrucao"); - base.Map((PerfilEmpresaDb x) => (object)x.Localizacao).CustomType>().Column("Localizacao"); - base.Map((PerfilEmpresaDb x) => x.EquipamentoSeguranca).Column("EquipamentoSeguranca"); - base.Map((PerfilEmpresaDb x) => x.EquipamentoIncendio).Column("EquipamentoIncendio"); - base.Map((PerfilEmpresaDb x) => (object)x.AtividadeEmpresa).CustomType>().Column("AtividadeEmpresa"); - base.Map((PerfilEmpresaDb x) => x.AtividadePrincipal).Column("AtividadePrincipal"); - base.Map((PerfilEmpresaDb x) => (object)x.ExclusivoDeposito).Column("ExclusivoDeposito"); - base.Map((PerfilEmpresaDb x) => (object)x.DivisaTerrenoBaldio).Column("DivisaTerrenoBaldio"); - base.Map((PerfilEmpresaDb x) => (object)x.PatrimonioHistorio).Column("PatrimonioHistorio"); - base.Map((PerfilEmpresaDb x) => (object)x.PossuiTelhado).Column("PossuiTelhado"); - base.Map((PerfilEmpresaDb x) => (object)x.CaixasEletronicos).Column("CaixasEletronicos"); - base.Map((PerfilEmpresaDb x) => (object)x.Isopainel).Column("Isopainel"); - base.Map((PerfilEmpresaDb x) => (object)x.ConstrucaoReforma).Column("ConstrucaoReforma"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PerfilMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PerfilMap.cs deleted file mode 100644 index 1729b6b..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PerfilMap.cs +++ /dev/null @@ -1,45 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class PerfilMap : ClassMap - { - public PerfilMap() - { - base.Table("perfil"); - base.LazyLoad(); - base.Id((PerfilDb x) => (object)x.Id).GeneratedBy.Identity().Column("idperfil"); - base.References((PerfilDb x) => x.Cliente).Column("idcliente").Not.Nullable().Fetch.Join(); - base.References((PerfilDb x) => x.Controle).Column("idcontrole").Not.Nullable().Fetch.Join(); - base.Map((PerfilDb x) => x.Nome).Column("nomecompleto").Not.Nullable(); - base.Map((PerfilDb x) => (object)x.Relacao).CustomType>().Column("relacao"); - base.Map((PerfilDb x) => x.CepPernoite).Column("ceppernoite"); - base.Map((PerfilDb x) => x.CepCirculacao).Column("cepcirculacao"); - base.Map((PerfilDb x) => x.KmMensal).Column("quilometragemmensal"); - base.Map((PerfilDb x) => (object)x.UsoProfissional).Column("usoprofissional").CustomType(); - base.Map((PerfilDb x) => (object)x.GaragemTrabalho).CustomType>().Column("garagemtrabalho"); - base.Map((PerfilDb x) => (object)x.GaragemEstudo).CustomType>().Column("garagemestudo"); - base.Map((PerfilDb x) => (object)x.GaragemResidencia).CustomType>().Column("garagemresidencia"); - base.Map((PerfilDb x) => (object)x.VeiculoResidencia).CustomType().Column("veiculosresidencia"); - base.Map((PerfilDb x) => (object)x.TipoResidencia).CustomType>().Column("tiporesidencia"); - base.Map((PerfilDb x) => (object)x.UsoDependentes).CustomType>().Column("usodependentes"); - base.Map((PerfilDb x) => (object)x.DistanciaResidenciaTrabalho).CustomType>().Column("distanciaresidenciatrabalho"); - base.Map((PerfilDb x) => (object)x.Ocupacao).CustomType>().Column("ocupacao"); - base.Map((PerfilDb x) => x.Cpf).Column("cpf"); - base.Map((PerfilDb x) => (object)x.Nascimento).Column("datanascimento"); - base.Map((PerfilDb x) => (object)x.Sexo).CustomType>().Column("sexo"); - base.Map((PerfilDb x) => (object)x.TempoHabilitacao).CustomType>().Column("tempohabilitacao"); - base.Map((PerfilDb x) => (object)x.EstadoCivil).CustomType>().Column("estadocivil"); - base.Map((PerfilDb x) => x.Habilitacao).Column("numerohabilitacao"); - base.Map((PerfilDb x) => (object)x.Isencao).Column("isencao").CustomType(); - base.Map((PerfilDb x) => (object)x.SeguroVida).Column("SeguroVida").CustomType(); - base.Map((PerfilDb x) => (object)x.AntiFurto).CustomType>().Column("antifurto"); - base.Map((PerfilDb x) => (object)x.EstenderCobertura).Column("EstenderCobertura"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PermissaoArquivoDigitalMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PermissaoArquivoDigitalMap.cs deleted file mode 100644 index 0838ac0..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PermissaoArquivoDigitalMap.cs +++ /dev/null @@ -1,24 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class PermissaoArquivoDigitalMap : ClassMap - { - public PermissaoArquivoDigitalMap() - { - base.Table("PermissaoArquivoDigital"); - base.LazyLoad(); - base.Id((PermissaoArquivoDigitalDb x) => (object)x.Id).GeneratedBy.Identity().Column("Id"); - base.References((PermissaoArquivoDigitalDb x) => x.Usuario).Column("IdUsuario").Not.Nullable().Fetch.Join(); - base.Map((PermissaoArquivoDigitalDb x) => (object)x.Tela).CustomType().Column("Tela"); - base.Map((PermissaoArquivoDigitalDb x) => (object)x.Consultar).Column("Consultar"); - base.Map((PermissaoArquivoDigitalDb x) => (object)x.Incluir).Column("Incluir"); - base.Map((PermissaoArquivoDigitalDb x) => (object)x.Excluir).Column("Excluir"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PermissaoUsuarioMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PermissaoUsuarioMap.cs deleted file mode 100644 index eade562..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PermissaoUsuarioMap.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class PermissaoUsuarioMap : ClassMap - { - public PermissaoUsuarioMap() - { - base.Table("PermissaoUsuario"); - base.LazyLoad(); - base.Id((PermissaoUsuarioDb x) => (object)x.Id).GeneratedBy.Identity().Column("Id"); - base.References((PermissaoUsuarioDb x) => x.Usuario).Column("IdUsuario").Not.Nullable().Fetch.Join(); - base.Map((PermissaoUsuarioDb x) => (object)x.Tela).CustomType().Column("Tela"); - base.Map((PermissaoUsuarioDb x) => (object)x.Consultar).Column("Consultar"); - base.Map((PermissaoUsuarioDb x) => (object)x.Incluir).Column("Incluir"); - base.Map((PermissaoUsuarioDb x) => (object)x.Alterar).Column("Alterar"); - base.Map((PermissaoUsuarioDb x) => (object)x.Excluir).Column("Excluir"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ProdutoMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ProdutoMap.cs deleted file mode 100644 index e04c26c..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ProdutoMap.cs +++ /dev/null @@ -1,21 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class ProdutoMap : ClassMap - { - public ProdutoMap() - { - base.Table("produto"); - base.LazyLoad(); - base.Id((ProdutoDb x) => (object)x.Id).GeneratedBy.Identity().Column("idproduto"); - base.Map((ProdutoDb x) => x.Nome).Column("nome"); - base.Map((ProdutoDb x) => (object)x.Ativo).Column("ativo"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ProspeccaoMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ProspeccaoMap.cs deleted file mode 100644 index 604818a..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ProspeccaoMap.cs +++ /dev/null @@ -1,44 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Ferramentas; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class ProspeccaoMap : ClassMap - { - public ProspeccaoMap() - { - base.Table("venctoaleatorio"); - base.LazyLoad(); - base.Id((ProspeccaoDb x) => (object)x.Id).GeneratedBy.Identity().Column("idvenctoaleatorio"); - base.References((ProspeccaoDb x) => x.Vendedor).Column("idvendedor").Not.Nullable().Fetch.Join(); - base.References((ProspeccaoDb x) => x.Produto).Column("IdProduto").Fetch.Join(); - base.References((ProspeccaoDb x) => x.StatusPersonalizado).Column("IdStatusPersonalizado").Fetch.Join(); - base.References((ProspeccaoDb x) => x.Ramo).Column("idramo").Fetch.Join(); - base.Map((ProspeccaoDb x) => (object)x.IdEmpresa).Column("idempresa"); - base.Map((ProspeccaoDb x) => x.Nome).Column("nome"); - base.Map((ProspeccaoDb x) => x.Documento).Column("cpfcnpj"); - base.Map((ProspeccaoDb x) => (object)x.Nascimento).Column("dtnascimento"); - base.Map((ProspeccaoDb x) => x.Prefixo1).Column("ddd"); - base.Map((ProspeccaoDb x) => x.Telefone1).Column("fone"); - base.Map((ProspeccaoDb x) => x.Prefixo2).Column("ddd2"); - base.Map((ProspeccaoDb x) => x.Telefone2).Column("fone2"); - base.Map((ProspeccaoDb x) => x.Email).Column("email"); - base.Map((ProspeccaoDb x) => (object)x.VigenciaFinal).Column("finalcontrato"); - base.Map((ProspeccaoDb x) => x.Item).Column("item").Not.Nullable(); - base.Map((ProspeccaoDb x) => (object)x.Status).CustomType>().Column("situacao"); - base.Map((ProspeccaoDb x) => x.Tipo).Column("tipoprospeccao"); - base.Map((ProspeccaoDb x) => x.Observacao).Column("obs").CustomType("StringClob").CustomSqlType("varchar(MAX)"); - base.Map((ProspeccaoDb x) => (object)x.DataCriacao).Column("datacriacao"); - base.Map((ProspeccaoDb x) => (object)x.UsuarioCriacao).Column("usuariocriacao"); - base.Map((ProspeccaoDb x) => (object)x.Valor).Column("valor"); - base.References((ProspeccaoDb x) => x.Tarefa).Column("idtarefa").Fetch.Join(); - base.Map((ProspeccaoDb x) => (object)x.CriarTarefa).Column("criartarefa"); - base.Map((ProspeccaoDb x) => (object)x.Renovacao).Column("renovacao"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/QualificacaoMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/QualificacaoMap.cs deleted file mode 100644 index cb0e5b1..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/QualificacaoMap.cs +++ /dev/null @@ -1,28 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class QualificacaoMap : ClassMap - { - public QualificacaoMap() - { - base.Table("qualificacao"); - base.LazyLoad(); - base.Id((QualificacaoDb x) => (object)x.Id).GeneratedBy.Identity().Column("idqualificacao"); - base.Map((QualificacaoDb x) => (object)x.Liquido1).Column("liquido1"); - base.Map((QualificacaoDb x) => (object)x.Liquido2).Column("liquido2"); - base.Map((QualificacaoDb x) => (object)x.Liquido3).Column("liquido3"); - base.Map((QualificacaoDb x) => (object)x.Comissao1).Column("comissao1"); - base.Map((QualificacaoDb x) => (object)x.Comissao2).Column("comissao2"); - base.Map((QualificacaoDb x) => (object)x.Comissao3).Column("comissao3"); - base.Map((QualificacaoDb x) => (object)x.Resultado1).Column("resultado1"); - base.Map((QualificacaoDb x) => (object)x.Resultado2).Column("resultado2"); - base.Map((QualificacaoDb x) => (object)x.Resultado3).Column("resultado3"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/RamoMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/RamoMap.cs deleted file mode 100644 index 734b2f6..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/RamoMap.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class RamoMap : ClassMap - { - public RamoMap() - { - base.Table("ramo"); - base.LazyLoad(); - base.Id((RamoDb x) => (object)x.Id).GeneratedBy.Assigned().Column("idramo"); - base.Map((RamoDb x) => x.Nome).Column("nome"); - base.Map((RamoDb x) => (object)x.Iof).Column("iof"); - base.Map((RamoDb x) => (object)x.Ativo).Column("ativo").CustomType(); - base.Map((RamoDb x) => (object)x.Fatura).Column("fatura").CustomType(); - base.Map((RamoDb x) => x.RamoSusep).Column("ramosusep"); - base.Map((RamoDb x) => (object)x.CodigoSusep).Column("codsusep"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/RepasseMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/RepasseMap.cs deleted file mode 100644 index cff9f61..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/RepasseMap.cs +++ /dev/null @@ -1,29 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class RepasseMap : ClassMap - { - public RepasseMap() - { - base.Table("repasse"); - base.LazyLoad(); - base.Id((RepasseDb x) => (object)x.Id).GeneratedBy.Identity().Column("idrepasse"); - base.References((RepasseDb x) => x.Vendedor).Column("idvendedor").Not.Nullable().Fetch.Join(); - base.References((RepasseDb x) => x.Ramo).Column("idramo").Fetch.Join(); - base.Map((RepasseDb x) => (object)x.Tipo).CustomType>().Column("tipo"); - base.Map((RepasseDb x) => (object)x.Incidencia).CustomType>().Column("incidencia"); - base.Map((RepasseDb x) => (object)x.Forma).CustomType>().Column("forma"); - base.Map((RepasseDb x) => (object)x.ValorNovo).Column("vlrnovo"); - base.Map((RepasseDb x) => (object)x.ValorRenovacao).Column("vlrrenovacao"); - base.Map((RepasseDb x) => (object)x.Base).CustomType>().Column("base"); - base.Map((RepasseDb x) => (object)x.Seguradora).Column("idciaseg"); - base.Map((RepasseDb x) => (object)x.Ativo).Column("ativo").CustomType(); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ResponsavelAssinaturaMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ResponsavelAssinaturaMap.cs deleted file mode 100644 index 6fc3456..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ResponsavelAssinaturaMap.cs +++ /dev/null @@ -1,23 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class ResponsavelAssinaturaMap : ClassMap - { - public ResponsavelAssinaturaMap() - { - base.Table("ResponsavelAssinatura"); - base.LazyLoad(); - base.Id((ResponsavelAssinaturaDb x) => (object)x.Id).GeneratedBy.Identity(); - base.Map((ResponsavelAssinaturaDb x) => (object)x.IdCliente).Not.Nullable(); - base.Map((ResponsavelAssinaturaDb x) => x.NomeResponsavel).Not.Nullable(); - base.Map((ResponsavelAssinaturaDb x) => x.DocumentoResponsavel).Not.Nullable(); - base.Map((ResponsavelAssinaturaDb x) => x.EmailResponsavel).Not.Nullable(); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/RestricaoUsuarioCamposRelatoriosMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/RestricaoUsuarioCamposRelatoriosMap.cs deleted file mode 100644 index 5c25982..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/RestricaoUsuarioCamposRelatoriosMap.cs +++ /dev/null @@ -1,23 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class RestricaoUsuarioCamposRelatoriosMap : ClassMap - { - public RestricaoUsuarioCamposRelatoriosMap() - { - base.Table("RestricaoUsuarioCampos"); - base.LazyLoad(); - base.Id((RestricaoUsuarioCamposRelatoriosDb x) => (object)x.Id).GeneratedBy.Identity(); - base.References((RestricaoUsuarioCamposRelatoriosDb x) => x.Usuario).Not.Nullable().Fetch.Join(); - base.Map((RestricaoUsuarioCamposRelatoriosDb x) => x.Campo); - base.Map((RestricaoUsuarioCamposRelatoriosDb x) => (object)x.Relatorio).CustomType().Not.Nullable(); - base.Map((RestricaoUsuarioCamposRelatoriosDb x) => (object)x.Restricao); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/RestricaoUsuarioMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/RestricaoUsuarioMap.cs deleted file mode 100644 index 0e9fdc0..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/RestricaoUsuarioMap.cs +++ /dev/null @@ -1,22 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class RestricaoUsuarioMap : ClassMap - { - public RestricaoUsuarioMap() - { - base.Table("RestricaoUsuario"); - base.LazyLoad(); - base.Id((RestricaoUsuarioDb x) => (object)x.Id).GeneratedBy.Identity().Column("Id"); - base.References((RestricaoUsuarioDb x) => x.Usuario).Column("IdUsuario").Not.Nullable().Fetch.Join(); - base.Map((RestricaoUsuarioDb x) => (object)x.Tipo).CustomType().Column("Tipo"); - base.Map((RestricaoUsuarioDb x) => (object)x.Restricao).Column("Restricao"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/RiscosDiversosMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/RiscosDiversosMap.cs deleted file mode 100644 index 843a0a0..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/RiscosDiversosMap.cs +++ /dev/null @@ -1,24 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class RiscosDiversosMap : ClassMap - { - public RiscosDiversosMap() - { - base.Table("riscosdiversos"); - base.LazyLoad(); - base.Id((RiscosDiversosDb x) => (object)x.Id).GeneratedBy.Identity().Column("idriscosdiversos"); - base.References((RiscosDiversosDb x) => x.Item).Column("iditem").Not.Nullable().Fetch.Join(); - base.Map((RiscosDiversosDb x) => x.Observacao).Column("obs").CustomType("StringClob").CustomSqlType("varchar(MAX)"); - base.Map((RiscosDiversosDb x) => (object)x.SubsidioEstadual).Column("subfed"); - base.Map((RiscosDiversosDb x) => (object)x.SubsidioFederal).Column("subest"); - base.Map((RiscosDiversosDb x) => x.Area).Column("area"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SeguradoraContatoMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SeguradoraContatoMap.cs deleted file mode 100644 index 8c19c92..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SeguradoraContatoMap.cs +++ /dev/null @@ -1,28 +0,0 @@ -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.Seguros -{ - public class SeguradoraContatoMap : ClassMap - { - public SeguradoraContatoMap() - { - base.Table("ciacontato"); - base.LazyLoad(); - base.Id((SeguradoraContatoDb x) => (object)x.Id).GeneratedBy.Identity().Column("idciacontato"); - base.References((SeguradoraContatoDb x) => x.Empresa).Column("idempresa").Not.Nullable().Fetch.Join(); - base.References((SeguradoraContatoDb x) => x.Seguradora).Column("idciaseg").Not.Nullable().Fetch.Join(); - base.Map((SeguradoraContatoDb x) => x.NomeContato).Column("nome"); - base.Map((SeguradoraContatoDb x) => (object)x.Tipo).CustomType().Column("idfonetipo"); - base.Map((SeguradoraContatoDb x) => x.Prefixo).Column("ddd"); - base.Map((SeguradoraContatoDb x) => x.Numero).Column("fone"); - base.Map((SeguradoraContatoDb x) => x.Email).Column("email"); - base.Map((SeguradoraContatoDb x) => (object)x.TipoContato).CustomType().Default("0"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SeguradoraEnderecoMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SeguradoraEnderecoMap.cs deleted file mode 100644 index d90a445..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SeguradoraEnderecoMap.cs +++ /dev/null @@ -1,30 +0,0 @@ -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.Seguros -{ - public class SeguradoraEnderecoMap : ClassMap - { - public SeguradoraEnderecoMap() - { - base.Table("ciaend"); - base.LazyLoad(); - base.Id((SeguradoraEnderecoDb x) => (object)x.Id).GeneratedBy.Identity().Column("idciaend"); - base.References((SeguradoraEnderecoDb x) => x.Empresa).Column("idempresa").Not.Nullable().Fetch.Join(); - base.References((SeguradoraEnderecoDb x) => x.Seguradora).Column("idciaseg").Not.Nullable().Fetch.Join(); - base.Map((SeguradoraEnderecoDb x) => x.Cep).Column("cep"); - base.Map((SeguradoraEnderecoDb x) => x.Cidade).Column("cidade"); - base.Map((SeguradoraEnderecoDb x) => x.Estado).Column("uf"); - base.Map((SeguradoraEnderecoDb x) => x.Bairro).Column("bairro"); - base.Map((SeguradoraEnderecoDb x) => x.Endereco).Column("endereco"); - base.Map((SeguradoraEnderecoDb x) => x.Numero).Column("numero"); - base.Map((SeguradoraEnderecoDb x) => x.Complemento).Column("complemento"); - base.Map((SeguradoraEnderecoDb x) => (object)x.Tipo).CustomType().Column("idtipoendereco"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SeguradoraMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SeguradoraMap.cs deleted file mode 100644 index 4c7dbe6..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SeguradoraMap.cs +++ /dev/null @@ -1,37 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class SeguradoraMap : ClassMap - { - public SeguradoraMap() - { - base.Table("ciaseg"); - base.LazyLoad(); - base.Id((SeguradoraDb x) => (object)x.Id).GeneratedBy.Assigned().Column("idciaseg"); - base.Map((SeguradoraDb x) => x.Nome).Column("nome"); - base.Map((SeguradoraDb x) => x.NomeSocial); - base.Map((SeguradoraDb x) => x.Susep).Column("susep"); - base.Map((SeguradoraDb x) => x.Assistencia).Column("assistencia"); - base.Map((SeguradoraDb x) => x.Documento).Column("cgccpf"); - base.Map((SeguradoraDb x) => (object)x.Ativo).Column("ativo").Not.Nullable().CustomType(); - base.Map((SeguradoraDb x) => (object)x.Tolerancia).Column("tolerancia"); - base.Map((SeguradoraDb x) => x.Observacao).Column("observacao").CustomType("StringClob").CustomSqlType("varchar(MAX)"); - base.Map((SeguradoraDb x) => x.Usuario).Column("usuario"); - base.Map((SeguradoraDb x) => x.Senha).Column("pass"); - base.Map((SeguradoraDb x) => x.Codigo).Column("code"); - base.Map((SeguradoraDb x) => x.CodigoSusep).Column("codesusep"); - base.Map((SeguradoraDb x) => (object)x.IdAggilizador).Column("id"); - base.Map((SeguradoraDb x) => x.CodigoSeguradora).Column("codcia"); - base.Map((SeguradoraDb x) => x.LinkAppAndroid); - base.Map((SeguradoraDb x) => x.LinkAppIos); - base.Map((SeguradoraDb x) => x.CustomId); - base.Map((SeguradoraDb x) => (object)x.ToleranciaPremio).CustomSqlType("numeric(8,2)").Default("2"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SinistroAutoMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SinistroAutoMap.cs deleted file mode 100644 index 51c5bbc..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SinistroAutoMap.cs +++ /dev/null @@ -1,35 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class SinistroAutoMap : ClassMap - { - public SinistroAutoMap() - { - base.Table("sinistroauto"); - base.LazyLoad(); - base.Id((SinistroAutoDb x) => (object)x.Id).GeneratedBy.Identity().Column("idsinistroauto"); - base.References((SinistroAutoDb x) => x.Sinistro).Column("idsinistro").Not.Nullable().Fetch.Join(); - base.References((SinistroAutoDb x) => x.ParceiroMecanica).Column("idparceiromecanica").Fetch.Join(); - base.References((SinistroAutoDb x) => x.ParceiroFunilaria).Column("idparceirofunilaria").Fetch.Join(); - base.Map((SinistroAutoDb x) => x.NumeroBo).Column("numbo"); - base.Map((SinistroAutoDb x) => (object)x.TipoPerda).Column("idtipoperda").CustomType(); - base.Map((SinistroAutoDb x) => (object)x.Culpado).Column("culpado").CustomType(); - base.Map((SinistroAutoDb x) => (object)x.UltimoDocEnviado).Column("dataultdoc"); - base.Map((SinistroAutoDb x) => x.Endereco).Column("endereco"); - base.Map((SinistroAutoDb x) => x.Envolvido).Column("envolvido"); - base.Map((SinistroAutoDb x) => x.Motorista).Column("motorista"); - base.Map((SinistroAutoDb x) => x.Ddd).Column("ddd"); - base.Map((SinistroAutoDb x) => x.Telefone).Column("telefone"); - base.Map((SinistroAutoDb x) => x.Email).Column("email"); - base.Map((SinistroAutoDb x) => x.Cnh).Column("cnh"); - base.Map((SinistroAutoDb x) => (object)x.ValorMecanica).Column("valormecanica"); - base.Map((SinistroAutoDb x) => (object)x.ValorFunilaria).Column("valorfunilaria"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SinistroMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SinistroMap.cs deleted file mode 100644 index dcad7ad..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SinistroMap.cs +++ /dev/null @@ -1,42 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class SinistroMap : ClassMap - { - public SinistroMap() - { - base.Table("sinistro"); - base.LazyLoad(); - base.Id((SinistroDb x) => (object)x.Id).GeneratedBy.Identity().Column("idsinistro"); - base.References((SinistroDb x) => x.ControleSinistro).Column("idcontrolesinistro").Not.Nullable().Fetch.Join(); - base.Map((SinistroDb x) => x.Numero).Column("numsinistro"); - base.Map((SinistroDb x) => (object)x.StatusSinistro).Column("idstatussinistro").CustomType(); - base.Map((SinistroDb x) => (object)x.TipoSinistro).Column("tiposinistro").CustomType(); - base.Map((SinistroDb x) => (object)x.DataReclamacao).Column("datareclamacao"); - base.Map((SinistroDb x) => (object)x.DataLiquidacao).Column("dataliquidacao"); - base.Map((SinistroDb x) => x.ItemSinistrado).Column("itemsinistrado"); - base.Map((SinistroDb x) => x.Descricao).Column("descricao").CustomType("StringClob").CustomSqlType("varchar(MAX)"); - base.Map((SinistroDb x) => x.Observacao).Column("observacao").CustomType("StringClob").CustomSqlType("nvarchar(max)"); - base.Map((SinistroDb x) => (object)x.Valor).Column("valor"); - base.Map((SinistroDb x) => x.Motivo).Column("motivo"); - base.Map((SinistroDb x) => (object)x.ValorOrcado).Column("vlrorcado"); - base.Map((SinistroDb x) => (object)x.ValorLiberado).Column("vlrliberado"); - base.Map((SinistroDb x) => (object)x.ValorPago).Column("vlrpago"); - base.Map((SinistroDb x) => (object)x.ValorFranquia).Column("vlrfranquia"); - base.Map((SinistroDb x) => x.Auxiliar).Column("auxiliar"); - base.Map((SinistroDb x) => (object)x.ValorSalvado).Column("vlrsalvado"); - base.Map((SinistroDb x) => x.ObservacaoInterna).Column("observacaoint").Length(4001); - base.Map((SinistroDb x) => x.StatusPersonalizado); - base.Map((SinistroDb x) => (object)x.DataCriacao).Column("datacriacao"); - base.Map((SinistroDb x) => (object)x.IdUsuarioCriacao).Column("usuariocriacao"); - base.Map((SinistroDb x) => (object)x.DataAlteracao).Column("dataalteracao"); - base.Map((SinistroDb x) => (object)x.IdUsuarioAlteracao).Column("usuarioalteracao"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SinistroVidaMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SinistroVidaMap.cs deleted file mode 100644 index 960164b..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SinistroVidaMap.cs +++ /dev/null @@ -1,26 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class SinistroVidaMap : ClassMap - { - public SinistroVidaMap() - { - base.Table("sinistrovida"); - base.LazyLoad(); - base.Id((SinistroVidaDb x) => (object)x.Id).GeneratedBy.Identity().Column("idsinistrovida"); - base.References((SinistroVidaDb x) => x.Sinistro).Column("idsinistro").Not.Nullable().Fetch.Join(); - base.Map((SinistroVidaDb x) => (object)x.TipoPerda).Column("tipoperda").CustomType(); - base.Map((SinistroVidaDb x) => (object)x.AuxFuneral).Column("auxfuneral").CustomType(); - base.Map((SinistroVidaDb x) => (object)x.EstadoCivil).CustomType>().Column("estadocivil"); - base.Map((SinistroVidaDb x) => x.CertObito).Column("certobito"); - base.Map((SinistroVidaDb x) => x.Beneficiario).Column("beneficiario"); - base.Map((SinistroVidaDb x) => x.Observacao).Column("observacao").CustomType("StringClob").CustomSqlType("varchar(MAX)"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/StatusMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/StatusMap.cs deleted file mode 100644 index b934254..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/StatusMap.cs +++ /dev/null @@ -1,21 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class StatusMap : ClassMap - { - public StatusMap() - { - base.Table("status"); - base.LazyLoad(); - base.Id((StatusDb x) => (object)x.Id).GeneratedBy.Identity().Column("idstatus"); - base.Map((StatusDb x) => x.Nome).Column("nome"); - base.Map((StatusDb x) => (object)x.Ativo).Column("ativo"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/TipoContaMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/TipoContaMap.cs deleted file mode 100644 index 3a80b5a..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/TipoContaMap.cs +++ /dev/null @@ -1,21 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class TipoContaMap : ClassMap - { - public TipoContaMap() - { - base.Table("tipoconta"); - base.LazyLoad(); - base.Id((TipoContaDb x) => (object)x.Id).GeneratedBy.Increment().Column("idtipoconta"); - base.Map((TipoContaDb x) => x.Descricao).Column("descricao"); - base.Map((TipoContaDb x) => (object)x.Ativo).Column("ativo"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/TipoVendedorMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/TipoVendedorMap.cs deleted file mode 100644 index e1a91d9..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/TipoVendedorMap.cs +++ /dev/null @@ -1,21 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class TipoVendedorMap : ClassMap - { - public TipoVendedorMap() - { - base.Table("tipovendedor"); - base.LazyLoad(); - base.Id((TipoVendedorDb x) => (object)x.Id).GeneratedBy.Assigned().Column("idtipovendedor"); - base.Map((TipoVendedorDb x) => x.Descricao).Column("descricao"); - base.Map((TipoVendedorDb x) => (object)x.Ativo).Column("ativo"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/TitularesVidaMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/TitularesVidaMap.cs deleted file mode 100644 index 23b56fa..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/TitularesVidaMap.cs +++ /dev/null @@ -1,33 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class TitularesVidaMap : ClassMap - { - public TitularesVidaMap() - { - base.Table("TitularesVida"); - base.LazyLoad(); - base.Id((TitularesVidaDb x) => (object)x.Id).GeneratedBy.Identity(); - base.References((TitularesVidaDb x) => x.Dependente).Fetch.Join().NotFound.Ignore(); - base.Map((TitularesVidaDb x) => (object)x.IdItem); - base.Map((TitularesVidaDb x) => x.Codigo); - base.Map((TitularesVidaDb x) => (object)x.Inicio).Not.Nullable(); - base.Map((TitularesVidaDb x) => (object)x.Fim); - base.Map((TitularesVidaDb x) => x.Fatura); - base.Map((TitularesVidaDb x) => x.Nome).Not.Nullable(); - base.Map((TitularesVidaDb x) => x.Observacao); - base.Map((TitularesVidaDb x) => (object)x.Nascimento); - base.Map((TitularesVidaDb x) => x.Cpf); - base.Map((TitularesVidaDb x) => x.Matricula); - base.Map((TitularesVidaDb x) => (object)x.Premio); - base.Map((TitularesVidaDb x) => (object)x.Capital); - base.Map((TitularesVidaDb x) => (object)x.Tipo).CustomType().Not.Nullable(); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/UsuarioMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/UsuarioMap.cs deleted file mode 100644 index e4579f0..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/UsuarioMap.cs +++ /dev/null @@ -1,69 +0,0 @@ -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.Seguros -{ - public class UsuarioMap : ClassMap - { - public UsuarioMap() - { - base.Table("usuario"); - base.LazyLoad(); - base.Id((UsuarioDb x) => (object)x.Id).GeneratedBy.Identity().Column("idusuario"); - base.References((UsuarioDb x) => x.Banco).Column("idcodigobanco").Fetch.Join(); - base.Map((UsuarioDb x) => (object)x.IdEmpresa).Column("idempresa"); - base.Map((UsuarioDb x) => x.Nome).Column("nome"); - base.Map((UsuarioDb x) => (object)x.Nascimento).Column("dtnasc"); - base.Map((UsuarioDb x) => x.Login).Column("identif"); - base.Map((UsuarioDb x) => x.Senha).Column("senha"); - base.Map((UsuarioDb x) => (object)x.Sexo).CustomType().Column("sexo"); - base.Map((UsuarioDb x) => x.Cep).Column("cep"); - base.Map((UsuarioDb x) => x.Endereco).Column("endereco"); - base.Map((UsuarioDb x) => x.Numero).Column("numero"); - base.Map((UsuarioDb x) => x.Complemento).Column("complemento"); - base.Map((UsuarioDb x) => x.Bairro).Column("bairro"); - base.Map((UsuarioDb x) => x.Cidade).Column("cidade"); - base.Map((UsuarioDb x) => x.Estado).Column("uf"); - base.Map((UsuarioDb x) => (object)x.TipoTelefone).CustomType(); - base.Map((UsuarioDb x) => x.Prefixo).Column("ddd"); - base.Map((UsuarioDb x) => x.Telefone).Column("telefone"); - base.Map((UsuarioDb x) => (object)x.TipoTelefone2).CustomType(); - base.Map((UsuarioDb x) => x.Prefixo2).Column("ddd2"); - base.Map((UsuarioDb x) => x.Telefone2).Column("telefone2"); - base.Map((UsuarioDb x) => x.Email).Column("email"); - base.Map((UsuarioDb x) => x.Documento).Column("cgccpf"); - base.Map((UsuarioDb x) => x.Identidade).Column("rg"); - base.Map((UsuarioDb x) => x.EstadoEmissor).Column("rguf"); - base.Map((UsuarioDb x) => (object)x.Expedicao).Column("rgexpedicao"); - base.Map((UsuarioDb x) => x.Agencia).Column("agencia"); - base.Map((UsuarioDb x) => x.Conta).Column("conta"); - base.Map((UsuarioDb x) => (object)x.Mobile).Column("mobile").CustomType(); - base.Map((UsuarioDb x) => (object)x.Resultados).Column("acessoresult").CustomType(); - base.Map((UsuarioDb x) => (object)x.Aggilizador).Column("visualizarcalculo"); - base.Map((UsuarioDb x) => (object)x.Excluido).Column("Removido"); - base.Map((UsuarioDb x) => (object)x.PermissaoAggilizador).Column("IdPermissao"); - base.Map((UsuarioDb x) => (object)x.Administrador).Column("AdmGestor"); - base.Map((UsuarioDb x) => (object)x.InicioAcesso).Column("InicioAcesso"); - base.Map((UsuarioDb x) => (object)x.FimAcesso).Column("FimAcesso"); - base.Map((UsuarioDb x) => (object)x.Segunda); - base.Map((UsuarioDb x) => (object)x.Terca); - base.Map((UsuarioDb x) => (object)x.Quarta); - base.Map((UsuarioDb x) => (object)x.Quinta); - base.Map((UsuarioDb x) => (object)x.Sexta); - base.Map((UsuarioDb x) => (object)x.Sabado); - base.Map((UsuarioDb x) => (object)x.Domingo); - base.Map((UsuarioDb x) => (object)x.TelaInicial).CustomType(); - base.Map((UsuarioDb x) => x.Cargo); - base.Map((UsuarioDb x) => x.Visita); - base.Map((UsuarioDb x) => (object)x.FiltroInicial).CustomType(); - base.Map((UsuarioDb x) => (object)x.Dashboard).Default("0"); - base.Map((UsuarioDb x) => (object)x.AdministradorCentralSegurado).Column("AdmCentralSegurado"); - base.Map((UsuarioDb x) => x.SsoId).CustomSqlType("varchar(30)"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/VendedorMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/VendedorMap.cs deleted file mode 100644 index e423351..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/VendedorMap.cs +++ /dev/null @@ -1,34 +0,0 @@ -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.Seguros -{ - public class VendedorMap : ClassMap - { - public VendedorMap() - { - base.Table("vendedor"); - base.LazyLoad(); - base.Id((VendedorDb x) => (object)x.Id).GeneratedBy.Identity().Column("idvendedor"); - base.References((VendedorDb x) => x.Banco).Column("idcodigobanco").Fetch.Join(); - base.Map((VendedorDb x) => (object)x.IdEmpresa).Column("idempresa"); - base.Map((VendedorDb x) => x.Nome).Column("nome"); - base.Map((VendedorDb x) => (object)x.TipoIncidenciaDesconto).Column("tipoincidenciadesconto").Default("0"); - base.Map((VendedorDb x) => (object)x.Desconto).Column("desconto"); - base.Map((VendedorDb x) => x.Documento).Column("cpfcnpj"); - base.Map((VendedorDb x) => x.Conta).Column("conta"); - base.Map((VendedorDb x) => x.Agencia).Column("agencia"); - base.Map((VendedorDb x) => (object)x.TipoConta).Column("idtipoconta"); - base.Map((VendedorDb x) => x.TitularConta).Column("titularconta"); - base.Map((VendedorDb x) => x.TitularDocumento).Column("cpfcnpjtitular"); - base.Map((VendedorDb x) => (object)x.Corretora).Column("corretora").CustomType(); - base.Map((VendedorDb x) => (object)x.Ativo).Column("ativo").CustomType(); - base.Map((VendedorDb x) => x.Observacao).Column("obs").CustomType("StringClob").CustomSqlType("varchar(MAX)"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/VendedorParcelaMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/VendedorParcelaMap.cs deleted file mode 100644 index 3bf9115..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/VendedorParcelaMap.cs +++ /dev/null @@ -1,34 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class VendedorParcelaMap : ClassMap - { - public VendedorParcelaMap() - { - base.Table("vendedorparcela"); - base.LazyLoad(); - base.Id((VendedorParcelaDb x) => (object)x.Id).GeneratedBy.Identity().Column("idvendedorparcela"); - base.References((VendedorParcelaDb x) => x.Vendedor).Column("idvendedor").Fetch.Join().Not.Nullable(); - base.References((VendedorParcelaDb x) => x.Documento).Column("iddocumento").Fetch.Join().Not.Nullable(); - base.References((VendedorParcelaDb x) => x.Parcela).Column("idparcela").Fetch.Join(); - base.References((VendedorParcelaDb x) => x.Repasse).Column("idrepasse").Fetch.Join().NotFound.Ignore(); - base.References((VendedorParcelaDb x) => x.CondicaoRepasse).Column("idcondicao").Fetch.Join().NotFound.Ignore(); - base.References((VendedorParcelaDb x) => x.TipoVendedor).Column("idtipovendedor").Not.Nullable().Fetch.Join(); - base.Map((VendedorParcelaDb x) => x.VCondRep).Column("vcondrep"); - base.Map((VendedorParcelaDb x) => (object)x.ValorRepasse).Column("vlrrep"); - base.Map((VendedorParcelaDb x) => (object)x.PorcentagemRepasse).Column("vrep"); - base.Map((VendedorParcelaDb x) => (object)x.ValorRepasseB).Column("vlrrepb"); - base.Map((VendedorParcelaDb x) => (object)x.PorcentagemRepasseB).Column("vrepb"); - base.Map((VendedorParcelaDb x) => (object)x.DataPagamento).Column("datapgt"); - base.Map((VendedorParcelaDb x) => (object)x.DataPrePagamento).Column("dataprepagto"); - base.Map((VendedorParcelaDb x) => (object)x.CoCorretagem).Column("cocorretagem"); - base.Map((VendedorParcelaDb x) => (object)x.ValorTotal).Column("valortotal"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/VendedorTelefoneMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/VendedorTelefoneMap.cs deleted file mode 100644 index 09f7b2e..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/VendedorTelefoneMap.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class VendedorTelefoneMap : ClassMap - { - public VendedorTelefoneMap() - { - base.Table("vendcontato"); - base.LazyLoad(); - base.Id((VendedorTelefoneDb x) => (object)x.Id).GeneratedBy.Identity().Column("idvendcontato"); - base.References((VendedorTelefoneDb x) => x.Vendedor).Column("IDVENDEDOR").Not.Nullable().Fetch.Join(); - base.Map((VendedorTelefoneDb x) => x.Nome).Column("nome"); - base.Map((VendedorTelefoneDb x) => (object)x.Tipo).CustomType().Column("idfonetipo"); - base.Map((VendedorTelefoneDb x) => x.Prefixo).Column("ddd"); - base.Map((VendedorTelefoneDb x) => x.Numero).Column("fone"); - base.Map((VendedorTelefoneDb x) => x.Email).Column("email"); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/VendedorUsuarioMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/VendedorUsuarioMap.cs deleted file mode 100644 index cceda11..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/VendedorUsuarioMap.cs +++ /dev/null @@ -1,21 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class VendedorUsuarioMap : ClassMap - { - public VendedorUsuarioMap() - { - base.Table("vendedorusuario"); - base.LazyLoad(); - base.Id((VendedorUsuarioDb x) => (object)x.Id).GeneratedBy.Identity().Column("idvendedorusuario"); - base.References((VendedorUsuarioDb x) => x.Usuario).Column("idusuario").Not.Nullable().Fetch.Join(); - base.References((VendedorUsuarioDb x) => x.Vendedor).Column("idvendedor").Not.Nullable().Fetch.Join(); - } - } -} \ No newline at end of file diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/VidaMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/VidaMap.cs deleted file mode 100644 index 1ef450f..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/VidaMap.cs +++ /dev/null @@ -1,26 +0,0 @@ -using FluentNHibernate.Mapping; -using Gestor.Infrastructure.Entities.Generic; -using Gestor.Infrastructure.Entities.Seguros; -using System; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; - -namespace Gestor.Infrastructure.Mappings.Seguros -{ - public class VidaMap : ClassMap - { - public VidaMap() - { - base.Table("vida"); - base.LazyLoad(); - base.Id((VidaDb x) => (object)x.Id).GeneratedBy.Identity().Column("idvida"); - base.References((VidaDb x) => x.Item).Column("iditem").Not.Nullable().Fetch.Join(); - base.Map((VidaDb x) => x.Plano).Column("plano"); - base.Map((VidaDb x) => (object)x.Socios).Column("socios"); - base.Map((VidaDb x) => (object)x.Funcionarios).Column("funcionarios"); - base.Map((VidaDb x) => (object)x.CapitalSocios).Column("capitalsocio"); - base.Map((VidaDb x) => (object)x.CapitalFuncionarios).Column("capitalfunc"); - base.Map((VidaDb x) => x.Observacao).Column("obs").Length(4001); - } - } -} \ No newline at end of file -- cgit v1.2.3