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

namespace Gestor.Infrastructure.Mappings.Financeiro
{
	public class PlanoMap : ClassMap<PlanoDb>
	{
		public PlanoMap()
		{
			base.Table("cplano");
			base.LazyLoad();
			base.Id((PlanoDb x) => (object)x.Id).GeneratedBy.Identity().Column("idcplano");
			base.Map((PlanoDb x) => x.Descricao).Column("descricao");
			base.Map((PlanoDb x) => (object)x.Ativo).Column("ativo").CustomType<CustomBoolType>();
		}
	}
}