summaryrefslogtreecommitdiff
path: root/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Relatorios/ParametrosTotalizacaoMap.cs
blob: 8df6f71be83c6c6c9fd12fd5b823d3ffb9cd4ddb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using FluentNHibernate.Mapping;
using Gestor.Infrastructure.Entities.Generic;
using Gestor.Infrastructure.Entities.Relatorios;
using System;
using System.Linq.Expressions;
using System.Runtime.CompilerServices;

namespace Gestor.Infrastructure.Mappings.Relatorios
{
	public class ParametrosTotalizacaoMap : ClassMap<ParametrosTotalizacaoDb>
	{
		public ParametrosTotalizacaoMap()
		{
			base.Table("CamposTotalizacao");
			base.LazyLoad();
			base.Id((ParametrosTotalizacaoDb x) => (object)x.Id).GeneratedBy.Identity();
			base.Map((ParametrosTotalizacaoDb x) => (object)x.IdUsuario).Not.Nullable();
			base.Map((ParametrosTotalizacaoDb x) => (object)x.Ativa).Not.Nullable();
			base.Map((ParametrosTotalizacaoDb x) => x.Campo).Not.Nullable();
			base.Map((ParametrosTotalizacaoDb x) => x.Header).Not.Nullable();
			base.Map((ParametrosTotalizacaoDb x) => (object)x.Relatorio).CustomType<Relatorio>().Not.Nullable();
		}
	}
}