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 --- .../ControleFinanceiroMap.cs | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/ControleFinanceiroMap.cs (limited to 'Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/ControleFinanceiroMap.cs') diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/ControleFinanceiroMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/ControleFinanceiroMap.cs new file mode 100644 index 0000000..e5e420c --- /dev/null +++ b/Codemerx/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