Skip to content

Instantly share code, notes, and snippets.

@flaviorl-net
Last active March 14, 2023 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flaviorl-net/d32f1799448d2017d4200c844667309a to your computer and use it in GitHub Desktop.
Save flaviorl-net/d32f1799448d2017d4200c844667309a to your computer and use it in GitHub Desktop.
public class Cliente
{
[Key]
public int Id { get; private set; }
public string Nome { get; private set; }
public string Sobrenome { get; private set; }
public DateTime DataNascimento { get; private set; }
public bool Ativo { get; private set; }
public Cliente(string nome, string sobrenome, DateTime dataNascimento, bool ativo)
{
Nome = nome;
Sobrenome = sobrenome;
DataNascimento = dataNascimento;
Ativo = ativo;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment