blob: 68aee56338305f7cdd3c036ecbc13f8ef6b5090a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
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 CoberturaGranizoMap : ClassMap<CoberturaGranizoDb>
{
public CoberturaGranizoMap()
{
base.Table("coberturagranizo");
base.LazyLoad();
base.Id((CoberturaGranizoDb x) => (object)x.Id).GeneratedBy.Identity().Column("idcoberturagranizo");
base.References<GranizoDb>((CoberturaGranizoDb x) => x.Granizo).Column("idgranizo").Not.Nullable().Fetch.Join();
base.Map((CoberturaGranizoDb x) => x.Variedade).Column("variedade");
base.Map((CoberturaGranizoDb x) => x.Quadra).Column("quadra");
base.Map((CoberturaGranizoDb x) => (object)x.Produtividade).Column("produtividade");
base.Map((CoberturaGranizoDb x) => (object)x.Lmi).Column("lmi");
base.Map((CoberturaGranizoDb x) => (object)x.Premio).Column("premio");
base.Map((CoberturaGranizoDb x) => (object)x.Area).Column("area");
base.Map((CoberturaGranizoDb x) => (object)x.Plantio).Column("dtplantio");
}
}
}
|