diff options
Diffstat (limited to 'Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/ProfissaoMap.cs')
| -rw-r--r-- | Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/ProfissaoMap.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/ProfissaoMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/ProfissaoMap.cs new file mode 100644 index 0000000..c42619d --- /dev/null +++ b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/ProfissaoMap.cs @@ -0,0 +1,22 @@ +using FluentNHibernate.Mapping;
+using Gestor.Infrastructure.Entities.Common;
+using Gestor.Infrastructure.Entities.Generic;
+using System;
+using System.Linq.Expressions;
+using System.Runtime.CompilerServices;
+
+namespace Gestor.Infrastructure.Mappings.Common
+{
+ public class ProfissaoMap : ClassMap<ProfissaoDb>
+ {
+ public ProfissaoMap()
+ {
+ base.Table("profissao");
+ base.LazyLoad();
+ base.Id((ProfissaoDb x) => (object)x.Id).GeneratedBy.Assigned().Column("idprofissao");
+ base.Map((ProfissaoDb x) => x.Codigo).Column("codigo");
+ base.Map((ProfissaoDb x) => x.Nome).Column("nome");
+ base.Map((ProfissaoDb x) => x.Aniversario).Column("dataaniversario");
+ }
+ }
+}
\ No newline at end of file |