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 --- .../DetalheExtratoMap.cs | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/DetalheExtratoMap.cs (limited to 'Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/DetalheExtratoMap.cs') diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/DetalheExtratoMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/DetalheExtratoMap.cs new file mode 100644 index 0000000..021416c --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/DetalheExtratoMap.cs @@ -0,0 +1,35 @@ +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 -- cgit v1.2.3