blob: 5c259824f9b5db0576706dcf4af9a8fb7149a43f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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 RestricaoUsuarioCamposRelatoriosMap : ClassMap<RestricaoUsuarioCamposRelatoriosDb>
{
public RestricaoUsuarioCamposRelatoriosMap()
{
base.Table("RestricaoUsuarioCampos");
base.LazyLoad();
base.Id((RestricaoUsuarioCamposRelatoriosDb x) => (object)x.Id).GeneratedBy.Identity();
base.References<UsuarioDb>((RestricaoUsuarioCamposRelatoriosDb x) => x.Usuario).Not.Nullable().Fetch.Join();
base.Map((RestricaoUsuarioCamposRelatoriosDb x) => x.Campo);
base.Map((RestricaoUsuarioCamposRelatoriosDb x) => (object)x.Relatorio).CustomType<Relatorio>().Not.Nullable();
base.Map((RestricaoUsuarioCamposRelatoriosDb x) => (object)x.Restricao);
}
}
}
|