summaryrefslogtreecommitdiff
path: root/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/CentroMap.cs
blob: c59e823bcd4625d0a0b35389e627c1754152a0fa (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.Financeiro;
using Gestor.Infrastructure.Entities.Generic;
using System;
using System.Linq.Expressions;
using System.Runtime.CompilerServices;

namespace Gestor.Infrastructure.Mappings.Financeiro
{
	public class CentroMap : ClassMap<CentroDb>
	{
		public CentroMap()
		{
			base.Table("centro");
			base.LazyLoad();
			base.Id((CentroDb x) => (object)x.Id).GeneratedBy.Identity().Column("idcentro");
			base.Map((CentroDb x) => x.Descricao).Column("descricao");
			base.Map((CentroDb x) => (object)x.Ativo).Column("ativo").CustomType<CustomBoolType>();
			base.Map((CentroDb x) => (object)x.IdEmpresa).Column("idempresa");
		}
	}
}