summaryrefslogtreecommitdiff
path: root/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/ResponsavelTarefaMap.cs
blob: 82d9578708f4ee01fc29c1d35d6f0104ff61fe11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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();
		}
	}
}