blob: c42619dda5b68a35e06e782d71096a75b6d5bc00 (
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.Common;
using Gestor.Infrastructure.Entities.Generic;
using System;
using System.Linq.Expressions;
using System.Runtime.CompilerServices;
namespace Gestor.Infrastructure.Mappings.Common
{
public class ProfissaoMap : ClassMap<ProfissaoDb>
{
public ProfissaoMap()
{
base.Table("profissao");
base.LazyLoad();
base.Id((ProfissaoDb x) => (object)x.Id).GeneratedBy.Assigned().Column("idprofissao");
base.Map((ProfissaoDb x) => x.Codigo).Column("codigo");
base.Map((ProfissaoDb x) => x.Nome).Column("nome");
base.Map((ProfissaoDb x) => x.Aniversario).Column("dataaniversario");
}
}
}
|