Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using MTSys.WebApp.Dominio.DTO;
- using MTSys.WebApp.Dominio.Interfaces;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Linq;
- using System.Text;
- namespace MTSys.WebApp.Dominio.Entidades
- {
- public class Cliente : IEntidadeBase, IFixo, IPessoaDTO
- {
- [Key]
- public int ClienteID { get; set; }
- public int PessoaID { get; set; }
- #region DadosInterface
- public string Fixo { get; set; }
- public string Status { get; set; }
- public string Apagado { get; set; }
- public int VisaoID { get; set; }
- public int UsuCad { get; set; }
- public DateTime DtCad { get; set; }
- public int UsuAlt { get; set; }
- public DateTime DtAlt { get; set; }
- public int? UsuApagado { get; set; }
- public DateTime? DtApagado { get; set; }
- #endregion
- [ForeignKey("PessoaID")]
- public virtual Pessoa Pessoa { get; set; }
- [NotMapped]
- public PessoaDTO PessoaDTO { get; set; }
- public void DTO()
- {
- if (Pessoa != null)
- {
- PessoaDTO = new PessoaDTO();
- PessoaDTO.Popular(Pessoa);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment