summaryrefslogtreecommitdiff
path: root/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CoberturaPadraoMap.cs
blob: 31b0990c348ea2c62b572639d2ba1f0a5d40b389 (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.Generic;
using Gestor.Infrastructure.Entities.Seguros;
using System;
using System.Linq.Expressions;
using System.Runtime.CompilerServices;

namespace Gestor.Infrastructure.Mappings.Seguros
{
	public class CoberturaPadraoMap : ClassMap<CoberturaPadraoDb>
	{
		public CoberturaPadraoMap()
		{
			base.Table("coberturapadrao");
			base.LazyLoad();
			base.Id((CoberturaPadraoDb x) => (object)x.Id).GeneratedBy.Assigned().Column("idcoberturapadrao");
			base.Map((CoberturaPadraoDb x) => (object)x.IdRamo).Column("idramo");
			base.Map((CoberturaPadraoDb x) => x.Descricao).Column("descricao");
			base.Map((CoberturaPadraoDb x) => (object)x.Padrao).Column("padrao").CustomType<CustomBoolType>();
		}
	}
}