1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using ConcursoProjetos.Data;
- using ConcursoProjetos.Domain.DomainCore;
- namespace ConcursoProjetos.Domain.Entities;
- public class Candidato : Entity, IEquatable<Candidato>
- {
- public string Cpf { get; set; }
- public string NomeCompleto { get; set; }
- public string Telefone { get; set; }
- public string Email { get; set; }
- public bool TipoPessoa { get; set; }
- public string Cnpj { get; set; }
- public string EmpresaRazaoSocial { get; set; }
- public string EmpresaTelefone { get; set; }
- public string EmpresaEmail { get; set; }
- public string UserId { get; set; }
- public virtual ApplicationUser User { get; set; }
- public override bool Equals(object? obj)
- {
- return Equals(obj as Candidato);
- }
- public bool Equals(Candidato? other)
- {
- return other is not null &&
- (Cpf == other.Cpf || Email == other.Email);
- }
- }
- public enum TipoPessoa
- {
- Fisica = 1,
- Juridica = 2
- }
|