Skip to content

Instantly share code, notes, and snippets.

@icebeam7 icebeam7/Usuario.cs
Created Apr 28, 2018

Embed
What would you like to do?
FaceLoginApp: Usuario.cs
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace FaceLoginApp.Modelos
{
public class Usuario
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Key]
public int Id { get; set; }
public string Key { get; set; }
public string Nombre { get; set; }
public string EmocionActual { get; set; }
public float ScoreActual { get; set; }
public string FotoActual { get; set; }
public string MensajeBienvenida
{
get
{
return $"Bienvenido {Nombre}, tu emoción actual es {EmocionActual} ({ScoreActual * 100} %)";
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.