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

namespace Gestor.Infrastructure.Mappings.Seguros
{
	public class StatusMap : ClassMap<StatusDb>
	{
		public StatusMap()
		{
			base.Table("status");
			base.LazyLoad();
			base.Id((StatusDb x) => (object)x.Id).GeneratedBy.Identity().Column("idstatus");
			base.Map((StatusDb x) => x.Nome).Column("nome");
			base.Map((StatusDb x) => (object)x.Ativo).Column("ativo");
		}
	}
}