0
I’m following this tutorial from Microsoft:
Creating a relational data model using Entity Framework 6 but I don’t know how to put a variable in a class that was an image and would serve as a profile photo of the student in this case. I thought I’d declare something like:
{
public class Pessoa
{
[Key]
public Guid Id_Pessoa { get; set; }
[ForeignKey("Contato")]
public int Contato_Id { get; set; }
public virtual ICollection<Contato> ListaContatos { get; set; }
[Required]
public string Nome { get; set; }
[Required]
public string Sexo { get; set; }
public string Sexualidade { get; set; }
[Display(Name = "Apelido")]
public string NickName { get; set; }
[Required]
[Display(Name = "Data de Nascimento")]
[DataType(DataType.Date)]
public DateTime DataNascimento { get; set; }
[Display(Name = "RG")]
public long Rg { get; set; }
[Display(Name = "CPF")]
public long Cpf { get; set; }
public float Peso { get; set; }
public float Altura { get; set; }
//Aqui deve haver uma foto para o perfil da pessoa
public System.IO.MemoryStream Ft_Avatar { get; set; }
}
}
Thank you very much.
– Iori Yagami