summaryrefslogtreecommitdiff
path: root/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ProdutoMap.cs
blob: e04c26c943093de507cd3b8a727c323277e50c31 (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 ProdutoMap : ClassMap<ProdutoDb>
	{
		public ProdutoMap()
		{
			base.Table("produto");
			base.LazyLoad();
			base.Id((ProdutoDb x) => (object)x.Id).GeneratedBy.Identity().Column("idproduto");
			base.Map((ProdutoDb x) => x.Nome).Column("nome");
			base.Map((ProdutoDb x) => (object)x.Ativo).Column("ativo");
		}
	}
}