summaryrefslogtreecommitdiff
path: root/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PerfilMap.cs
diff options
context:
space:
mode:
authorLucas Faria Mendes <lucas.fariamo08@gmail.com>2026-03-30 13:38:18 +0000
committerLucas Faria Mendes <lucas.fariamo08@gmail.com>2026-03-30 13:38:18 +0000
commit1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1 (patch)
treee1c3b20ea08f0cf71122a1e73f0d395f8fd83874 /Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PerfilMap.cs
parent674ca83ba9243a9e95a7568c797668dab6aee26a (diff)
downloadgestor-1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1.tar.gz
gestor-1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1.zip
chore: location
Diffstat (limited to 'Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PerfilMap.cs')
-rw-r--r--Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PerfilMap.cs45
1 files changed, 0 insertions, 45 deletions
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<PerfilDb>
- {
- public PerfilMap()
- {
- base.Table("perfil");
- base.LazyLoad();
- base.Id((PerfilDb x) => (object)x.Id).GeneratedBy.Identity().Column("idperfil");
- base.References<ClienteDb>((PerfilDb x) => x.Cliente).Column("idcliente").Not.Nullable().Fetch.Join();
- base.References<ControleDb>((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<CustomEnumType<Relacao>>().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<CustomBoolType>();
- base.Map((PerfilDb x) => (object)x.GaragemTrabalho).CustomType<CustomEnumType<GaragemTrabalhoEstudo>>().Column("garagemtrabalho");
- base.Map((PerfilDb x) => (object)x.GaragemEstudo).CustomType<CustomEnumType<GaragemTrabalhoEstudo>>().Column("garagemestudo");
- base.Map((PerfilDb x) => (object)x.GaragemResidencia).CustomType<CustomEnumType<GaragemResidencia>>().Column("garagemresidencia");
- base.Map((PerfilDb x) => (object)x.VeiculoResidencia).CustomType<CustomIntType>().Column("veiculosresidencia");
- base.Map((PerfilDb x) => (object)x.TipoResidencia).CustomType<CustomEnumType<TipoResidencia>>().Column("tiporesidencia");
- base.Map((PerfilDb x) => (object)x.UsoDependentes).CustomType<CustomEnumType<UsoDependetes>>().Column("usodependentes");
- base.Map((PerfilDb x) => (object)x.DistanciaResidenciaTrabalho).CustomType<CustomEnumType<DistanciaTrabalho>>().Column("distanciaresidenciatrabalho");
- base.Map((PerfilDb x) => (object)x.Ocupacao).CustomType<CustomEnumType<Ocupacao>>().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<CustomEnumType2<Sexo>>().Column("sexo");
- base.Map((PerfilDb x) => (object)x.TempoHabilitacao).CustomType<CustomEnumType<TempoHabilitacao>>().Column("tempohabilitacao");
- base.Map((PerfilDb x) => (object)x.EstadoCivil).CustomType<CustomEnumType<EstadoCivil>>().Column("estadocivil");
- base.Map((PerfilDb x) => x.Habilitacao).Column("numerohabilitacao");
- base.Map((PerfilDb x) => (object)x.Isencao).Column("isencao").CustomType<CustomBoolType>();
- base.Map((PerfilDb x) => (object)x.SeguroVida).Column("SeguroVida").CustomType<CustomBoolType>();
- base.Map((PerfilDb x) => (object)x.AntiFurto).CustomType<CustomEnumType<Antifurto>>().Column("antifurto");
- base.Map((PerfilDb x) => (object)x.EstenderCobertura).Column("EstenderCobertura");
- }
- }
-} \ No newline at end of file