diff options
Diffstat (limited to 'Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CoberturaPadraoMap.cs')
| -rw-r--r-- | Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CoberturaPadraoMap.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CoberturaPadraoMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CoberturaPadraoMap.cs new file mode 100644 index 0000000..31b0990 --- /dev/null +++ b/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 |