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 { 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"); } } }