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 --- .../TarefaMap.cs | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/TarefaMap.cs (limited to 'Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/TarefaMap.cs') diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/TarefaMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/TarefaMap.cs new file mode 100644 index 0000000..d4ebb97 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/TarefaMap.cs @@ -0,0 +1,38 @@ +using FluentNHibernate.Mapping; +using Gestor.Infrastructure.Entities.Ferramentas; +using Gestor.Infrastructure.Entities.Generic; +using Gestor.Infrastructure.Entities.Seguros; +using System; +using System.Linq.Expressions; +using System.Runtime.CompilerServices; + +namespace Gestor.Infrastructure.Mappings.Ferramentas +{ + public class TarefaMap : ClassMap + { + public TarefaMap() + { + base.Table("Tarefa"); + base.LazyLoad(); + base.Id((TarefaDb x) => (object)x.Id).GeneratedBy.Identity(); + base.Map((TarefaDb x) => (object)x.IdCliente); + base.Map((TarefaDb x) => x.Cliente); + base.References((TarefaDb x) => x.Trilha).Column("IdTrilha"); + base.References((TarefaDb x) => x.Fase).Column("IdFase"); + base.References((TarefaDb x) => x.Usuario).Column("IdUsuario"); + base.References((TarefaDb x) => x.UsuarioCadastro).Column("IdUsuarioCadastro"); + base.References((TarefaDb x) => x.Categoria).Column("IdCategoria").Fetch.Join(); + base.References((TarefaDb x) => x.TipoDeTarefa).Column("IdTipoTarefa"); + base.Map((TarefaDb x) => (object)x.Entidade).CustomType(); + base.Map((TarefaDb x) => (object)x.IdEntidade); + base.Map((TarefaDb x) => x.Titulo); + base.Map((TarefaDb x) => x.Descricao).CustomType("StringClob").CustomSqlType("nvarchar(max)"); + base.Map((TarefaDb x) => x.DescricaoInterna).Column("descricaointerna").CustomType("StringClob").CustomSqlType("nvarchar(max)"); + base.Map((TarefaDb x) => x.Referencia); + base.Map((TarefaDb x) => (object)x.Agendamento); + base.Map((TarefaDb x) => (object)x.Conclusao); + base.Map((TarefaDb x) => (object)x.Status).CustomType(); + base.Map((TarefaDb x) => (object)x.Restrito); + } + } +} \ No newline at end of file -- cgit v1.2.3