Created
May 11, 2021 16:33
-
-
Save luisdeol/eef6c14181506a6bbece23ee26dd26aa to your computer and use it in GitHub Desktop.
Artigo LINQ #2: Classe Pessoa e PessoaItemViewModel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
namespace ArtigoLinq | |
{ | |
public class Pessoa | |
{ | |
public Pessoa(string nome, string sobrenome, string documento, string endereco, string cep, string numero, string cidadeEstado) | |
{ | |
Nome = nome; | |
Sobrenome = sobrenome; | |
Documento = documento; | |
Endereco = endereco; | |
Cep = cep; | |
Numero = numero; | |
CidadeEstado = cidadeEstado; | |
} | |
public string Nome { get; set; } | |
public string Sobrenome { get; set; } | |
public string Documento { get; set; } | |
public string Endereco { get; set; } | |
public string Cep { get; set; } | |
public string Numero { get; set; } | |
public string CidadeEstado { get; set; } | |
} | |
public class PessoaItemViewModel | |
{ | |
public PessoaItemViewModel(string nomeCompleto, string documento) | |
{ | |
NomeCompleto = nomeCompleto; | |
Documento = documento; | |
} | |
public string NomeCompleto { get; set; } | |
public string Documento { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment