diff options
| author | Lucas Faria Mendes <lucas.fariamo08@gmail.com> | 2026-03-30 13:38:18 +0000 |
|---|---|---|
| committer | Lucas Faria Mendes <lucas.fariamo08@gmail.com> | 2026-03-30 13:38:18 +0000 |
| commit | 1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1 (patch) | |
| tree | e1c3b20ea08f0cf71122a1e73f0d395f8fd83874 /Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/EmpresaMap.cs | |
| parent | 674ca83ba9243a9e95a7568c797668dab6aee26a (diff) | |
| download | gestor-1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1.tar.gz gestor-1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1.zip | |
chore: location
Diffstat (limited to 'Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/EmpresaMap.cs')
| -rw-r--r-- | Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/EmpresaMap.cs | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/EmpresaMap.cs b/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/EmpresaMap.cs deleted file mode 100644 index 53d2e0c..0000000 --- a/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Common/EmpresaMap.cs +++ /dev/null @@ -1,53 +0,0 @@ -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 EmpresaMap : ClassMap<EmpresaDb>
- {
- public EmpresaMap()
- {
- base.Table("empresa");
- base.LazyLoad();
- base.Id((EmpresaDb x) => (object)x.Id).GeneratedBy.Identity().Column("idempresa");
- base.Map((EmpresaDb x) => x.Nome).Column("nome").Not.Nullable();
- base.Map((EmpresaDb x) => x.NomeSocial);
- base.Map((EmpresaDb x) => x.Documento).Column("cgccpf");
- base.Map((EmpresaDb x) => x.Serial).Column("ns");
- base.Map((EmpresaDb x) => x.Cep).Column("cep");
- base.Map((EmpresaDb x) => x.Endereco).Column("endereco");
- base.Map((EmpresaDb x) => x.Numero).Column("numero");
- base.Map((EmpresaDb x) => x.Complemento).Column("complemento");
- base.Map((EmpresaDb x) => x.Bairro).Column("bairro");
- base.Map((EmpresaDb x) => x.Cidade).Column("cidade");
- base.Map((EmpresaDb x) => x.Estado).Column("uf");
- base.Map((EmpresaDb x) => x.Site).Column("site");
- base.Map((EmpresaDb x) => x.Email).Column("email");
- base.Map((EmpresaDb x) => (object)x.TipoTelefone1).CustomType<TipoTelefone?>();
- base.Map((EmpresaDb x) => x.PrimeiroPrefixo).Column("ddd");
- base.Map((EmpresaDb x) => x.PrimeiroTelefone).Column("telefone");
- base.Map((EmpresaDb x) => (object)x.TipoTelefone2).CustomType<TipoTelefone?>();
- base.Map((EmpresaDb x) => x.SegundoPrefixo).Column("ddd2");
- base.Map((EmpresaDb x) => x.SegundoTelefone).Column("telefone2");
- base.Map((EmpresaDb x) => (object)x.QuantidadeFuncionarios).Column("nfuncionarios");
- base.Map((EmpresaDb x) => x.QuantidadeFiliais).Column("unidade");
- base.Map((EmpresaDb x) => x.Responsavel).Column("nomeresponsavel");
- base.Map((EmpresaDb x) => x.EmailResponsavel).Column("emailresponsavel");
- base.Map((EmpresaDb x) => x.SenhaAdmin).Column("senhaadm");
- base.Map((EmpresaDb x) => x.Facebook);
- base.Map((EmpresaDb x) => x.Instagram);
- base.Map((EmpresaDb x) => x.Linkdin);
- base.Map((EmpresaDb x) => x.Whatsapp);
- base.Map((EmpresaDb x) => x.WhatsappSinistro);
- base.Map((EmpresaDb x) => x.Twitter);
- base.Map((EmpresaDb x) => x.Localizacao);
- base.Map((EmpresaDb x) => x.Logo).CustomSqlType("varbinary(max)").Length(2147483647);
- base.Map((EmpresaDb x) => x.LogoId);
- base.Map((EmpresaDb x) => (object)x.MaxFileSize).Column("filesize");
- }
- }
-}
\ No newline at end of file |