Skip to content

Instantly share code, notes, and snippets.

@gnzandrs
Created April 18, 2019 16:12
Show Gist options
  • Save gnzandrs/5ba86f7ede89a7285a791d436eb6a52d to your computer and use it in GitHub Desktop.
Save gnzandrs/5ba86f7ede89a7285a791d436eb6a52d to your computer and use it in GitHub Desktop.
dotnet core user model class to EntityFramework
using System.ComponentModel.DataAnnotations;
namespace DotNetApi.Models
{
public class Usuario
{
[Key]
public long IdUsuario { get; set; }
public string Nombres { get; set; }
public string ApellidoPaterno { get; set; }
public string ApellidoMaterno { get; set; }
public string Email { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment