diff options
Diffstat (limited to 'Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/CategoriaTarefaMap.cs')
| -rw-r--r-- | Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/CategoriaTarefaMap.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/CategoriaTarefaMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/CategoriaTarefaMap.cs new file mode 100644 index 0000000..b0cd7d1 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/CategoriaTarefaMap.cs @@ -0,0 +1,20 @@ +using FluentNHibernate.Mapping;
+using Gestor.Infrastructure.Entities.Ferramentas;
+using Gestor.Infrastructure.Entities.Generic;
+using System;
+using System.Linq.Expressions;
+using System.Runtime.CompilerServices;
+
+namespace Gestor.Infrastructure.Mappings.Ferramentas
+{
+ public class CategoriaTarefaMap : ClassMap<CategoriaTarefaDb>
+ {
+ public CategoriaTarefaMap()
+ {
+ base.Table("CategoriaTarefa");
+ base.LazyLoad();
+ base.Id((CategoriaTarefaDb x) => (object)x.Id).GeneratedBy.Identity();
+ base.Map((CategoriaTarefaDb x) => x.Descricao);
+ }
+ }
+}
\ No newline at end of file |