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 --- .../ControleFinanceiroMap.cs | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/ControleFinanceiroMap.cs (limited to 'Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/ControleFinanceiroMap.cs') diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/ControleFinanceiroMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/ControleFinanceiroMap.cs new file mode 100644 index 0000000..e5e420c --- /dev/null +++ b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/ControleFinanceiroMap.cs @@ -0,0 +1,24 @@ +using FluentNHibernate.Mapping; +using Gestor.Infrastructure.Entities.Financeiro; +using Gestor.Infrastructure.Entities.Generic; +using System; +using System.Linq.Expressions; +using System.Runtime.CompilerServices; + +namespace Gestor.Infrastructure.Mappings.Financeiro +{ + public class ControleFinanceiroMap : ClassMap + { + public ControleFinanceiroMap() + { + base.Table("cfinan"); + base.LazyLoad(); + base.Id((ControleFinanceiroDb x) => (object)x.Id).GeneratedBy.Identity().Column("idcfinan"); + base.References((ControleFinanceiroDb x) => x.Fornecedor).Column("idfornecedor").NotFound.Ignore().Fetch.Join(); + base.References((ControleFinanceiroDb x) => x.Plano).Column("idcplanos").NotFound.Ignore().Fetch.Join(); + base.References((ControleFinanceiroDb x) => x.Centro).Column("idcentro").NotFound.Ignore().Fetch.Join(); + base.Map((ControleFinanceiroDb x) => x.Historico).Column("historico"); + base.Map((ControleFinanceiroDb x) => (object)x.Parcelas).Column("parcela"); + } + } +} \ No newline at end of file -- cgit v1.2.3