Skip to content

Instantly share code, notes, and snippets.

@icebeam7
Created April 28, 2018 14:23
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 icebeam7/5f509a8328d19c91567835ac89eec2e1 to your computer and use it in GitHub Desktop.
Save icebeam7/5f509a8328d19c91567835ac89eec2e1 to your computer and use it in GitHub Desktop.
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