Created
April 18, 2019 16:12
-
-
Save gnzandrs/5ba86f7ede89a7285a791d436eb6a52d to your computer and use it in GitHub Desktop.
dotnet core user model class to EntityFramework
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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