From 674ca83ba9243a9e95a7568c797668dab6aee26a Mon Sep 17 00:00:00 2001 From: Lucas Faria Mendes Date: Mon, 30 Mar 2026 10:35:25 -0300 Subject: feat: upload files --- .../SeguradoraContatoMap.cs | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SeguradoraContatoMap.cs (limited to 'Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SeguradoraContatoMap.cs') diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SeguradoraContatoMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SeguradoraContatoMap.cs new file mode 100644 index 0000000..8c19c92 --- /dev/null +++ b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/SeguradoraContatoMap.cs @@ -0,0 +1,28 @@ +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 -- cgit v1.2.3