diff options
Diffstat (limited to 'Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PermissaoUsuarioMap.cs')
| -rw-r--r-- | Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PermissaoUsuarioMap.cs | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PermissaoUsuarioMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PermissaoUsuarioMap.cs deleted file mode 100644 index eade562..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/PermissaoUsuarioMap.cs +++ /dev/null @@ -1,25 +0,0 @@ -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 PermissaoUsuarioMap : ClassMap<PermissaoUsuarioDb>
- {
- public PermissaoUsuarioMap()
- {
- base.Table("PermissaoUsuario");
- base.LazyLoad();
- base.Id((PermissaoUsuarioDb x) => (object)x.Id).GeneratedBy.Identity().Column("Id");
- base.References<UsuarioDb>((PermissaoUsuarioDb x) => x.Usuario).Column("IdUsuario").Not.Nullable().Fetch.Join();
- base.Map((PermissaoUsuarioDb x) => (object)x.Tela).CustomType<TipoTela>().Column("Tela");
- base.Map((PermissaoUsuarioDb x) => (object)x.Consultar).Column("Consultar");
- base.Map((PermissaoUsuarioDb x) => (object)x.Incluir).Column("Incluir");
- base.Map((PermissaoUsuarioDb x) => (object)x.Alterar).Column("Alterar");
- base.Map((PermissaoUsuarioDb x) => (object)x.Excluir).Column("Excluir");
- }
- }
-}
\ No newline at end of file |