Created
May 11, 2018 12:22
-
-
Save icebeam7/2cd72a67df1d27b1606d9b7bc8641a7e to your computer and use it in GitHub Desktop.
SistemaEscolar: Alumno.cs
This file contains 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; | |
using System.ComponentModel.DataAnnotations; | |
using System.ComponentModel.DataAnnotations.Schema; | |
namespace SistemaEscolar.Modelos | |
{ | |
public class Alumno | |
{ | |
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] | |
[Key] | |
public int Id { get; set; } | |
public string Nombre { get; set; } | |
public DateTime FechaNacimiento { get; set; } | |
public Escuela Escuela { get; set; } | |
[ForeignKey("EscuelaForeignKey")] | |
public int IdEscuela { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment