summaryrefslogtreecommitdiff
path: root/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/ResponsavelTarefaMap.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/ResponsavelTarefaMap.cs')
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/ResponsavelTarefaMap.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/ResponsavelTarefaMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/ResponsavelTarefaMap.cs
new file mode 100644
index 0000000..82d9578
--- /dev/null
+++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/ResponsavelTarefaMap.cs
@@ -0,0 +1,22 @@
+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 ResponsavelTarefaMap : ClassMap<ResponsavelTarefaDb>
+ {
+ public ResponsavelTarefaMap()
+ {
+ base.Table("ResponsavelTarefa");
+ base.LazyLoad();
+ base.Id((ResponsavelTarefaDb x) => (object)x.Id).GeneratedBy.Identity();
+ base.References<UsuarioDb>((ResponsavelTarefaDb x) => x.Usuario).Not.Nullable().Fetch.Join();
+ base.Map((ResponsavelTarefaDb x) => (object)x.IdTarefa).Not.Nullable();
+ }
+ }
+} \ No newline at end of file