summaryrefslogtreecommitdiff
path: root/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/AgendaEmailMap.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/AgendaEmailMap.cs')
-rw-r--r--Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/AgendaEmailMap.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/AgendaEmailMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/AgendaEmailMap.cs
new file mode 100644
index 0000000..67624d1
--- /dev/null
+++ b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/AgendaEmailMap.cs
@@ -0,0 +1,21 @@
+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 AgendaEmailMap : ClassMap<AgendaEmailDb>
+ {
+ public AgendaEmailMap()
+ {
+ base.Table("agendaemail");
+ base.LazyLoad();
+ base.Id((AgendaEmailDb x) => (object)x.Id).GeneratedBy.Identity().Column("idagendaemail");
+ base.References<AgendaDb>((AgendaEmailDb x) => x.Agenda).Column("idagenda").Not.Nullable().Fetch.Join();
+ base.Map((AgendaEmailDb x) => x.Email).Column("email").Not.Nullable();
+ }
+ }
+} \ No newline at end of file