summaryrefslogtreecommitdiff
path: root/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Seguros/ControleSinistroMap.cs
blob: f404be8c3d8aee3176751fee4b97902a08da766d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 ControleSinistroMap : ClassMap<ControleSinistroDb>
	{
		public ControleSinistroMap()
		{
			base.Table("controlesinistro");
			base.LazyLoad();
			base.Id((ControleSinistroDb x) => (object)x.Id).GeneratedBy.Identity().Column("idcontrolesinistro");
			base.References<ItemDb>((ControleSinistroDb x) => x.Item).Column("iditem").Not.Nullable().Fetch.Join();
			base.Map((ControleSinistroDb x) => (object)x.DataSinistro).Column("datasinistro");
		}
	}
}