Skip to content

Instantly share code, notes, and snippets.

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

Embed
What would you like to do?
SistemaEscolar: Escuela.cs
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace SistemaEscolar.Modelos
{
public class Escuela
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Key]
public int Id { get; set; }
public string Nombre { get; set; }
public List<Alumno> Alumnos { 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.