diff options
Diffstat (limited to 'Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CondicaoRepasseMap.cs')
| -rw-r--r-- | Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CondicaoRepasseMap.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CondicaoRepasseMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CondicaoRepasseMap.cs new file mode 100644 index 0000000..099834d --- /dev/null +++ b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/CondicaoRepasseMap.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 CondicaoRepasseMap : ClassMap<CondicaoRepasseDb>
+ {
+ public CondicaoRepasseMap()
+ {
+ base.Table("condicao");
+ base.LazyLoad();
+ base.Id((CondicaoRepasseDb x) => (object)x.Id).GeneratedBy.Identity().Column("idcondicao");
+ base.References<RamoDb>((CondicaoRepasseDb x) => x.Ramo).Column("idramo").Fetch.Join();
+ base.References<SeguradoraDb>((CondicaoRepasseDb x) => x.Seguradora).Column("idciaseg").Fetch.Join();
+ base.Map((CondicaoRepasseDb x) => (object)x.Parcela).Column("parcela");
+ }
+ }
+}
\ No newline at end of file |