summaryrefslogtreecommitdiff
path: root/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CoberturaPadraoMap.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CoberturaPadraoMap.cs')
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CoberturaPadraoMap.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CoberturaPadraoMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CoberturaPadraoMap.cs
new file mode 100644
index 0000000..31b0990
--- /dev/null
+++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CoberturaPadraoMap.cs
@@ -0,0 +1,22 @@
+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 CoberturaPadraoMap : ClassMap<CoberturaPadraoDb>
+ {
+ public CoberturaPadraoMap()
+ {
+ base.Table("coberturapadrao");
+ base.LazyLoad();
+ base.Id((CoberturaPadraoDb x) => (object)x.Id).GeneratedBy.Assigned().Column("idcoberturapadrao");
+ base.Map((CoberturaPadraoDb x) => (object)x.IdRamo).Column("idramo");
+ base.Map((CoberturaPadraoDb x) => x.Descricao).Column("descricao");
+ base.Map((CoberturaPadraoDb x) => (object)x.Padrao).Column("padrao").CustomType<CustomBoolType>();
+ }
+ }
+} \ No newline at end of file