summaryrefslogtreecommitdiff
path: root/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Ferramentas/CategoriaTarefaMap.cs
blob: b0cd7d10f8dbf69709cc608e57639e034ab82ec0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using FluentNHibernate.Mapping;
using Gestor.Infrastructure.Entities.Ferramentas;
using Gestor.Infrastructure.Entities.Generic;
using System;
using System.Linq.Expressions;
using System.Runtime.CompilerServices;

namespace Gestor.Infrastructure.Mappings.Ferramentas
{
	public class CategoriaTarefaMap : ClassMap<CategoriaTarefaDb>
	{
		public CategoriaTarefaMap()
		{
			base.Table("CategoriaTarefa");
			base.LazyLoad();
			base.Id((CategoriaTarefaDb x) => (object)x.Id).GeneratedBy.Identity();
			base.Map((CategoriaTarefaDb x) => x.Descricao);
		}
	}
}