blob: 67624d1176702fa97d8d3d8a1d7ea3abcecee14b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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();
}
}
}
|