Skip to content

Instantly share code, notes, and snippets.

@icebeam7 icebeam7/Alumno.cs
Created May 11, 2018

Embed
What would you like to do?
SistemaEscolar: Alumno.cs
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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.